Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(core) - Deprecate the "operationName" property and move to "kind" #1045

Merged
merged 21 commits into from
Oct 28, 2020
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'origin/main' into rfc/1005-operation-kind
  • Loading branch information
kitten committed Oct 28, 2020

Verified

This commit was signed with the committer’s verified signature.
kitten Phil Pluckthun
commit 687bfa459a606a803f83095b8fbf9f36ef829342
6 changes: 3 additions & 3 deletions exchanges/graphcache/src/offlineExchange.ts
Original file line number Diff line number Diff line change
@@ -80,8 +80,8 @@ export const offlineExchange = (opts: CacheExchangeOpts): Exchange => input => {
const updateMetadata = () => {
const requests: SerializedRequest[] = [];
for (let i = 0; i < failedQueue.length; i++) {
const op = failedQueue[i];
if (op.kind === 'mutation') {
const operation = failedQueue[i];
if (operation.kind === 'mutation') {
requests.push({
query: print(operation.query),
variables: operation.variables,
@@ -98,7 +98,7 @@ export const offlineExchange = (opts: CacheExchangeOpts): Exchange => input => {

for (let i = 0; i < failedQueue.length; i++) {
const operation = failedQueue[i];
if (operation.operationName === 'mutation') {
if (operation.kind === 'mutation') {
next({ ...operation, operationName: 'teardown' });
}
}
You are viewing a condensed version of this merge commit. You can view the full changes here.