1.1.1 • Published 7 years ago
graphql-firepad-text-operation v1.1.1
graphql-firepad-text-operation
GraphQL firepad text operation json type
Installation
npm i --save graphql-firepad-text-operation
Usage
var GraphQLTextOperation = require('graphql-firepad-text-operation')
// Use graphql-date in your GraphQL objects for Date properties
var fooType = new GraphQLObjectType({
name: 'Foo',
fields: {
created: {
type: GraphQLTextOperation,
description: 'Firepad text operation json',
}
}
});
var queryType = new GraphQLObjectType({
name: 'Query',
fields: {
foo: {
type: fooType,
resolve: function () {
// ...
},
}
}
})
License
MIT