When this preview feature is enabled, it automatically generates an input type and mutation to support partial document updates.

Enable this preview when querying via the /graphql endpoint.

For example, if partial-update-mutation is enabled and you import the following schema:

type User {
  username: String!
  password: String!

Then, apart from all of the elements that are generated automatically, an additional new partialUpdate<Type> mutation and an additional PartialUpdate<Type>Input input type are created as well:

type Mutation {
  partialUpdateUser(id: ID!, data: PartialUpdateUserInput!): User

type PartialUpdateUserInput {
  username: String
  password: String

All of the fields are optional in the new input type, and any required fields are validated at runtime when executing the query.

Is this article helpful? 

Tell Fauna how the article can be improved:
Visit Fauna's forums or email

Thank you for your feedback!