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

RFC Add namespaces support #103

Open
SerafimArts opened this issue Jan 16, 2018 · 1 comment
Open

RFC Add namespaces support #103

SerafimArts opened this issue Jan 16, 2018 · 1 comment

Comments

@SerafimArts
Copy link
Member

At the moment all GraphQL types share one global namespace. This is also true for all of the fields in mutation/subscription type. It can be a concern for bigger projects which may contain several loosely-coupled parts in a GraphQL schema.

It is suggested to reserve a symbol / for the support of the namespaces:

interface Common/Versioned {
  id: String!
  version: Long!
}

type Blog/Article implements Common/Versioned {
  id: String!
  version: Long!
  title: String!
  text: String
  author: Author
}
@SerafimArts
Copy link
Member Author

SerafimArts commented Mar 14, 2018

Since version 1.2 the following keywords will be reserved:

  • namespace
  • import
  • from
  • use

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant