graphql-directive-rest
graphql-cost-analysis
graphql-directive-rest | graphql-cost-analysis | |
---|---|---|
1 | 1 | |
40 | 666 | |
- | - | |
0.0 | 0.0 | |
over 1 year ago | over 1 year ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
graphql-directive-rest
-
What You Need to Know About GraphQL Directives
In this case, @rest is a custom directive that can be applied to a query. In the above example, we've supplied only one argument to the directive (endpoint). StepZen uses this directive to write the resolver that handles the getArticles query so that it can connect this query to data from the supplied REST endpoint. StepZen has a similar directive, @dbquery, for connecting a database backend. There are also community implementations of a similar @rest directive.
graphql-cost-analysis
-
GraphQL - Diving Deep
Another way is to use custom cost directives as in this package manually specifying the complexity and cost and using that to bill your APIs
What are some alternatives?
join-monster - A GraphQL to SQL query execution layer for query planning and batch data fetching.
apollo-server - 🌍 Spec-compliant and production ready JavaScript GraphQL server that lets you develop in a schema-first way. Built for Express, Connect, Hapi, Koa, and more.
transferred-stepzen-schemas - A collection of importable GraphQL schemas for use with StepZen.
TypeGraphQL - Create GraphQL schema and resolvers with TypeScript, using classes and decorators!
parse-server - Parse Server for Node.js / Express
TypeScript - TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
json-graphql-server - Get a full fake GraphQL API with zero coding in less than 30 seconds.
graphql-depth-limit - Limit the complexity of your GraphQL queries based on depth.
nodejs-salting - There is a method in the crypto module called scrypt that we are going to use in the example.
Hasura - Blazing fast, instant realtime GraphQL APIs on your DB with fine grained access control, also trigger webhooks on database events.
Neo4j - Graphs for Everyone
GraphQL-Content-Hub - An apollo server acting as a content hub serving content from multiple locations.