egoist / Parse Graphql
Licence: mit
Parse GraphQL Query.
Stars: ✭ 49
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Parse Graphql
Babel Plugin Import Graphql
Enables import syntax for .graphql and .gql files
Stars: ✭ 284 (+479.59%)
Mutual labels: graphql, parse
Rdbms To Graphql
A Java CLI program that generates a GraphQL schema from a JDBC data source.
Stars: ✭ 44 (-10.2%)
Mutual labels: graphql
Typeorm Graphql Loader
A query builder to easily resolve nested fields and relations for TypeORM-based GraphQL servers
Stars: ✭ 47 (-4.08%)
Mutual labels: graphql
Graphql Advanced Projection
Fully customizable Mongoose/MongoDB projection generator.
Stars: ✭ 46 (-6.12%)
Mutual labels: graphql
Realm Graphql Service
GraphQL service for Realm Object Server
Stars: ✭ 44 (-10.2%)
Mutual labels: graphql
Graphql Zeus
GraphQL client and GraphQL code generator with GraphQL autocomplete library generation ⚡⚡⚡ for browser,nodejs and react native
Stars: ✭ 1,043 (+2028.57%)
Mutual labels: graphql
Graphql Retrofit Converter
A Retrofit 2 Converter.Factory for GraphQL.
Stars: ✭ 46 (-6.12%)
Mutual labels: graphql
Graphql Scalars
A library of custom GraphQL Scalars for creating precise type-safe GraphQL schemas.
Stars: ✭ 1,023 (+1987.76%)
Mutual labels: graphql
Graphql Kotlin
Libraries for running GraphQL in Kotlin
Stars: ✭ 1,030 (+2002.04%)
Mutual labels: graphql
Magiql
🌐 💫 Simple and powerful GraphQL Client, love child of react-query ❤️ relay
Stars: ✭ 45 (-8.16%)
Mutual labels: graphql
Graphql Rails Generators
Graphql Rails Scaffold™. Automatically generate GraphQL types from your rails models.
Stars: ✭ 47 (-4.08%)
Mutual labels: graphql
K2
Koa2 API template with passport, GraphQL, flowtype, knex and more.
Stars: ✭ 44 (-10.2%)
Mutual labels: graphql
Hunt Android
https://medium.com/@Cuong.Le/open-sourcing-hunt-d49919960ef1
Stars: ✭ 46 (-6.12%)
Mutual labels: graphql
parse-graphql
Given a GraphQL source, parses it into a Document.
Throws GraphQLError if a syntax error is encountered.
This module is basically a standalone version (70KB unminified) for require('graphql').parse
(1.8MB).
Install
yarn add parse-graphql
Usage
const { parse } = require('parse-graphql')
const document = parse(`{
user {
name
id
}
}`)
The document
is:
{
kind: 'Document',
definitions: [
{
kind: 'OperationDefinition',
operation: 'query',
name: undefined,
variableDefinitions: [],
directives: [],
selectionSet: {
kind: 'SelectionSet',
selections: [
{
kind: 'Field',
alias: undefined,
name: { kind: 'Name', value: 'user', loc: { start: 4, end: 8 } },
arguments: [],
directives: [],
selectionSet: {
kind: 'SelectionSet',
selections: [
{
kind: 'Field',
alias: undefined,
name: {
kind: 'Name',
value: 'name',
loc: { start: 15, end: 19 }
},
arguments: [],
directives: [],
selectionSet: undefined,
loc: { start: 15, end: 19 }
},
{
kind: 'Field',
alias: undefined,
name: {
kind: 'Name',
value: 'id',
loc: { start: 24, end: 26 }
},
arguments: [],
directives: [],
selectionSet: undefined,
loc: { start: 24, end: 26 }
}
],
loc: { start: 9, end: 30 }
},
loc: { start: 4, end: 30 }
}
],
loc: { start: 0, end: 32 }
},
loc: { start: 0, end: 32 }
}
],
loc: { start: 0, end: 32 }
}
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Author
parse-graphql © EGOIST, Released under the MIT License.
Authored and maintained by EGOIST with help from contributors (list).
github.com/egoist · GitHub @EGOIST
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].