happylinks / gqlint

GraphQL (Schema) Linter
MIT License
41 stars 4 forks source link

fix mutation name #15

Open msayagh opened 5 years ago

msayagh commented 5 years ago

Mutations were previously found using the keyword "GraphQLMutation", while users do not always follow this rule. They can, however, follow this pattern:

extend type Mutation { users: UserMutation }

type UserMutation { createUsers(email: String): User }

This pull request fixes that problem. I first find what are the mutations that we have, then run the previously implemented analysis

coveralls commented 5 years ago

Coverage Status

Coverage decreased (-4.6%) to 93.072% when pulling 8afb3f88255174e8dd5befcb1e7c2ff8e72e6ceb on msayagh:master into 3a6c4e60c30865e88e980c0104a2cb9696eb407b on happylinks:master.

msayagh commented 5 years ago

Sure, I will address your comments ASAP.