GraphQL.js
Getting Started
Using GraphQL.js
yarn add graphqlnpm install --save graphqlimport {
graphql,
GraphQLSchema,
GraphQLObjectType,
GraphQLString,
} from 'graphql';
var schema = new GraphQLSchema({
query: new GraphQLObjectType({
name: 'RootQueryType',
fields: {
hello: {
type: GraphQLString,
resolve() {
return 'world';
},
},
},
}),
});Want to ride the bleeding edge?
Using in a Browser
Contributing
Changelog
License
Last updated