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

Got error: strconv.ParseInt: parsing #83

Open
bekkazy-k opened this issue Sep 27, 2024 · 0 comments
Open

Got error: strconv.ParseInt: parsing #83

bekkazy-k opened this issue Sep 27, 2024 · 0 comments

Comments

@bekkazy-k
Copy link

bekkazy-k commented Sep 27, 2024

I have a problem with my query

const query = `query getShopById($shopId: int) {
      node(func: type(Shop)) @filter(eq(shopId, $shopId)) {
        uid
        shopId
        domain
      }
    }`;

    const vars = { $shopId: 1 };
    const shop = await dgraphClient.newTxn().queryWithVars(query, vars);

this code returns an error

errors: [
    {
      message: ': Got error: strconv.ParseInt: parsing "": invalid syntax while running: name:"eq" args:"" ',
      extensions: [Object]
    }
  ]

the same query in the interface works correctly and returns data
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant