29 lines
427 B
GraphQL
29 lines
427 B
GraphQL
schema @link(url: "https://specs.apollo.dev/federation/v2.11", import: ["@key"]) {
|
|
query: Query
|
|
mutation: Mutation
|
|
}
|
|
|
|
type Mutation {
|
|
ping: String!
|
|
}
|
|
|
|
type Query {
|
|
_entities(representations: [_Any!]!): [_Entity]!
|
|
_service: _Service!
|
|
me: User!
|
|
allUsers: [User!]!
|
|
}
|
|
|
|
type User @key(fields: "id") {
|
|
id: ID!
|
|
username: String!
|
|
email: String!
|
|
}
|
|
|
|
scalar _Any
|
|
|
|
union _Entity = User
|
|
|
|
type _Service {
|
|
sdl: String!
|
|
} |