drupal-graphql / graphql-apq Goto Github PK
View Code? Open in Web Editor NEWAutomatic Persisted Queries for Drupal's GraphQL
License: GNU General Public License v3.0
Automatic Persisted Queries for Drupal's GraphQL
License: GNU General Public License v3.0
Having the possibility to persist arbitrary queries (in my opinion) is one of the main reasons people use persisted queries at the build time which is difficult to orchestrate and adds more work when migrating over GraphQL as a public API.
Proposal:
Enable modules to extend the validation rules of queries before they are persisted in order to create their own custom logic that applies best to their business use case.
We are using this module, getting this issue .
Sending new hash with query , registers hash and responds with Data.
When trying to send query with only hash(already registered) and variable , getting response PersistedQueryNotFound. After clearing cache getting response as expected.
Same issue was resolved in Graphql module :-
drupal-graphql/graphql#483
Can we also implement similar approach?
I have query which is not implemented on Drupal (new content type is not created) but this query still work - returns empty data. If i test same query in /graphql/explorer i get error:
The website encountered an unexpected error. Please try again later.</br></br><em class="placeholder">LogicException</em>: Missing type ParagraphBoxHeader. in <em class="placeholder">Drupal\graphql\Plugin\GraphQL\Schemas\SchemaPluginBase->getType()</em> (line <em class="placeholder">421</em> of <em class="placeholder">modules/contrib/graphql/src/Plugin/GraphQL/Schemas/SchemaPluginBase.php</em>). <pre class="backtrace">Drupal\graphql\Plugin\GraphQL\Schemas\SchemaPluginBase->Drupal\graphql\Plugin\GraphQL\Schemas\{closure}('ParagraphBoxHeader') (Line: 319)
I use Angular app as frontend with modiffied Apollo client which first try GET query and then (if is not stored in apq_query_map) send query through POST. But this post still return some data:
{"data":[]}
I think this should return some error. Thanks.
Currently the README links are 404 Not Found.
Adding a minor text patch for the latest URL.
We would like to use persisted queries, but not automated. It gives us a security benefit, that only the selected queries are allowed for clients.
Note: Using the persisted queries option provided by the graphql module is not wanted, as it works with a deprecated apollo package. apollographql/persistgraphql#67
Hi, I want to use this module to enable apq caching for our drupal graphql but am not too sure how to use this.
I have this module installed and enabled in our environment, but does that mean apq is running? If so how do I verify? Or do I need to create an apollo server separately in order to use this module?
To add to this I am using the drupal grapql module to do our queries.
Thanks!
Hello does this module work for v3 qnd v4 of graphql?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.