Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a records field to the root query #12

Open
haydn opened this issue Sep 4, 2021 · 0 comments
Open

Add a records field to the root query #12

haydn opened this issue Sep 4, 2021 · 0 comments

Comments

@haydn
Copy link
Owner

haydn commented Sep 4, 2021

It's often useful to query for a record, a set of records or all records without specifying the type. There should be root-level fields that use the generic Record (currently Node) interface.

These are the default fields that should exist on the root query (this assumes #3 has been implemented):

type RootQueryType {
  relationships(foreignKeys: [ForeignKeyInput!]): [Relationship!]!
  record(id: String!): Record
  records(ids: [String!]): [Record]!
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant