will this RFC also include composite indexes?
E.g. in this example I want to allow unique names within a group of bars, i.e. the uniqueness should only be validated for the composite pair (fooID, name).
type Foo {
id: String! @id
bars: [Bar!]!
}
type Bar @id(fooId, name) {
fooId: String!
name: String!
}
We can filter the results using multiple id fields. getQuery will now accept many fields which have @id field. All of them will be connected using And filter in resulting query.
To clarify, the existing support for multiple @id fields requires each field to be unique by itself and the “AND filtering” would mostly be a no-op (unless you passed two conflicting IDs that don’t actually exist as a pair)?