Gathering detailed insights and metrics for graphql-ast-types-browser
Gathering detailed insights and metrics for graphql-ast-types-browser
Gathering detailed insights and metrics for graphql-ast-types-browser
Gathering detailed insights and metrics for graphql-ast-types-browser
@0no-co/graphql.web
A spec-compliant client-side GraphQL implementation
graphql-tag
A JavaScript template literal tag that parses GraphQL queries
ast-types-flow
Flow types for the Javascript AST
ast-module-types
Collection of useful helper functions when trying to determine module type (CommonJS or AMD) properties of an AST node.
npm install graphql-ast-types-browser
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
33 Commits
1 Forks
3 Watching
4 Branches
1 Contributors
Updated on 30 Oct 2018
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-18.7%
500
Compared to previous day
Last week
13.1%
3,106
Compared to previous week
Last month
15.3%
12,127
Compared to previous month
Last year
-28.5%
145,395
Compared to previous year
:warning: This package is a temporary clone of graphql-ast-types
.
It will be deleted as soon as the issue #7 is closed.
Use it at your own risk.
Autogenerated helper functions for generating a GraphQL AST
This project generates helpers functions from the graphql/language AST flow descriptions. It is intended to help with building a valid GraphQL AST.
yarn add graphql-ast-types
1import * as t from 'graphql-ast-types';
The implementation here mimics that of babel-types
. Thanks Babel team.
The following is an example of how to build a simple query with AST types.
1import * as t from 'graphql-ast-types'; 2import { print } from 'graphql/language'; 3 4const ast = t.document([ 5 t.operationDefinition( 6 'query', 7 t.selectionSet([ 8 t.field(t.name('foo')), 9 t.field(t.name('bar')) 10 ]) 11 ) 12]); 13 14print(ast); 15 16/* 17query { 18 foo 19 bar 20} 21*/
In addition, method calls are validated for correctness and accompanied by is
and assert
helpers.
1t.isName(t.name('Hello')); // true 2 3t.isName({ kind: 'Name' }); // true 4t.assert({ kind: 'Name' }); // no error 5 6t.isName({ kind: 'IntValue' }); // false 7t.assert({ kind: 'IntValue' }); // error
The full API can be found here.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
64 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More