Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 411 Bytes

README.md

File metadata and controls

27 lines (21 loc) · 411 Bytes

GraphQL Binding Example

GraphQL Binding for an example Prisma Service

The schema that this binding represents is shown below:

type Query {
  user(id: ID!): User
  users: [User!]!
}

type Mutation {
  createUser(name: String!): User!
  updateUser(id: ID!, name: String!): User
  deleteUser(id: ID!): User
}

type Subscription {
  userCreated: User!
}

type User {
  id: ID!
  name: String!
}