join-monster
graphql-directive-rest
join-monster | graphql-directive-rest | |
---|---|---|
3 | 1 | |
2,656 | 40 | |
0.3% | - | |
6.6 | 0.0 | |
1 day 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.
join-monster
-
Understanding TTFB Latency in DJango - Seems absurdly slow after DB optimizations even locally
GraphQL could be efficiently translated into SQL and things certainly try, but the only thing close to a "bulletproof" implementation I found was Join Monster (https://github.com/join-monster/join-monster) in NodeJS-land and even that I think is now mostly abandoned. GraphQL as a system was built assuming random-access to data stores is ~free because that's what Facebook has, but the rest of us don't :)
-
Ask HN: Nested Resources in REST/HTTP API URLs?
REST is not a strict specification and it's not a single implementation, you can just start doing it.
That said, I wouldn't recommend going the allow everything flexible resolver way like GraphQL: it's terrible for performance (eg. most APIs use N+1 queries unless you have something like https://github.com/join-monster/join-monster), the complexity of the codebase skyrockets and having to specify all the fields you want is not exactly ergonomic in most situations.
- GraphQL Is a Trap?
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.
What are some alternatives?
ent - An entity framework for Go
transferred-stepzen-schemas - A collection of importable GraphQL schemas for use with StepZen.
trustfall - A query engine for any combination of data sources. Query your files and APIs as if they were databases!
parse-server - Parse Server for Node.js / Express
genql - Type safe TypeScript client for any GraphQL API
graphql-cost-analysis - A Graphql query cost analyzer.
Sqlmancer - Conjure SQL from GraphQL queries 🧙🔮✨
json-graphql-server - Get a full fake GraphQL API with zero coding in less than 30 seconds.
objection-filter - Filter objection.js models over HTTP using complex search queries
pycon-graphql
postgrest - REST API for any Postgres database
Hasura - Blazing fast, instant realtime GraphQL APIs on your DB with fine grained access control, also trigger webhooks on database events.