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

using deep.update #212

Open
TimaxLacs opened this issue Jan 11, 2024 · 0 comments
Open

using deep.update #212

TimaxLacs opened this issue Jan 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@TimaxLacs
Copy link
Contributor

TimaxLacs commented Jan 11, 2024

Bug description

This function throws an error when used:

async function updateLinkValue(syncTextFile, value, deep){
    console.log(syncTextFile, value);
    await deep.update(
        {
          link_id: syncTextFile
        },
        {
          value: value
        },
        {
          table: (typeof value) + 's'
        }
      )      
}

Expected Behavior

Text File Link Updates

Current Behavior

Error:

throw new Error(`DeepClient Update Error: ${e.message}`, { cause: e });
                          ^

Error: DeepClient Update Error: field "__typename" not found in type: 'bigint_comparison_exp'
    at DeepClient.<anonymous> (file:///C:/Users/samsung/Deep.project/sync-file/deep-files-sync/node_modules/@deep-foundation/deeplinks/imports/client.js:497:27)
    at Generator.throw (<anonymous>)
    at rejected (file:///C:/Users/samsung/Deep.project/sync-file/deep-files-sync/node_modules/@deep-foundation/deeplinks/imports/client.js:5:65)  
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  [cause]: ApolloError: field "__typename" not found in type: 'bigint_comparison_exp'
      at new ApolloError (C:\Users\samsung\Deep.project\sync-file\deep-files-sync\node_modules\@apollo\client\errors\errors.cjs:33:28)
      at C:\Users\samsung\Deep.project\sync-file\deep-files-sync\node_modules\@apollo\client\core\core.cjs:1427:47
      at both (C:\Users\samsung\Deep.project\sync-file\deep-files-sync\node_modules\@apollo\client\utilities\utilities.cjs:1269:31)
      at C:\Users\samsung\Deep.project\sync-file\deep-files-sync\node_modules\@apollo\client\utilities\utilities.cjs:1260:72
      at new Promise (<anonymous>)
      at Object.then (C:\Users\samsung\Deep.project\sync-file\deep-files-sync\node_modules\@apollo\client\utilities\utilities.cjs:1260:24)        
      at Object.next (C:\Users\samsung\Deep.project\sync-file\deep-files-sync\node_modules\@apollo\client\utilities\utilities.cjs:1271:49)        
      at notifySubscription (C:\Users\samsung\Deep.project\sync-file\deep-files-sync\node_modules\zen-observable\lib\Observable.js:135:18)        
      at onNotify (C:\Users\samsung\Deep.project\sync-file\deep-files-sync\node_modules\zen-observable\lib\Observable.js:179:3)
      at SubscriptionObserver.next (C:\Users\samsung\Deep.project\sync-file\deep-files-sync\node_modules\zen-observable\lib\Observable.js:235:7) {    graphQLErrors: [
      {
        extensions: {
          path: '$.selectionSet.update_strings.args.where.id.__typename',
          code: 'validation-failed'
        },
        message: `field "__typename" not found in type: 'bigint_comparison_exp'`
      }
    ],
    protocolErrors: [],
    clientErrors: [],
    networkError: null,
    extraInfo: undefined
  }
}

Steps to reproduce

No response

Workaround

No response

Environment

No response

@TimaxLacs TimaxLacs added the bug Something isn't working label Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant