Closed jaulz closed 4 months ago
Can we just make the method public for now?
@spawnia sure, fine for me 😊 I anyway hope that there will be something built-in to allow pre-defined queries and mutations in the future 😉
Thank you @jaulz, released with https://github.com/nuwave/lighthouse/releases/tag/v6.40.0.
Changes
This PR will remember persisted queries locally. The idea is related to https://github.com/nuwave/lighthouse/discussions/2561. Right now, I use the
StartOperationOrOperations
event to determine whether the query is allowed or not. This works fine but previously defined queries will not work anymore as soon as I release another version. Hence, I would like to check first if the query was persisted before:This PR makes
loadPersistedQuery
public and also remembers persisted queries locally to avoid hitting the cache twice.Please let me know what you think and I can try to implement tests as well.
Breaking changes
n/a