You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This proposal introduces a syntactic addition for client-side tools that perform code generation. It allows those tools to describe "extensions" to the server-supplied GraphQL schema. Tools may then use this information to generate client side Plain-Ol'-Data types which include these client-side-only extensions.
The syntax I'm proposing is:
```
TypeExtensionDefinition : `extend` ObjectDefinition
```
An example of this might look like:
```
type User {
name: String
birthday: Int
}
extend type User {
age: Int
}
```
While I could have proposed simply `extend User { ... }`, I chose to fully reuse the ObjectDefinition rule to preserve the future ability to expand this syntax to include extending interfaces, enums, and other types.
0 commit comments