@wolox/graphql-inspector-node
Version:
## Summary Simple schema inspector that uses `graphql-inspector` for comparing schemas looking for differences between them and categorizing them into three possible categories: * NON_BREAKING * DANGEROUS * BREAKING
24 lines (20 loc) • 419 B
JavaScript
const { makeExecutableSchema } = require('graphql-tools');
const breakingTypeDefs = `type User {
firstName: String!
lastName: String!
username: String!
email: String!
password: String!
id: ID!
}
input UserInput {
firstName: String!
lastName: String!
username: String!
email: String!
password: String!
name: String!
}`;
exports.schema = makeExecutableSchema({
typeDefs: breakingTypeDefs
});