Questions

  • Shopify GraphQL using fetch API, returns empty json, no errors

    1 Trying to just fetch the name of my store in a React component using the Fetch API and GraphQL endpoint of Shopify. I created a Shopify store, gave permissions to the Storefront API and crafted this in my componentDidMount() section of my react component. let query = ‘{ shop { name } }’; console.log(JSON.stringify(query)); […]

  • What techniques have you used to manage the complexity of your GraphQL schema? [closed]

    -3 Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines. It is not currently accepting answers. We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations. Closed […]

  • Not able to Configure GraphQL with Angular. NodeJS 14

    0 I have been trying to configure my angular project with graphql, angular-apollo but it’s not happening. My angular project is using NodeJS 14 Version error PS C:UsersadminDocumentsworkspacetechwarelab-websiteTechwareLab-Website> ng serve Compiling @nguniversal/express-engine/tokens : es2015 as esm2015 Compiling ngx-captcha : es2015 as esm2015 Compiling ngx-owl-carousel-o : es2015 as esm2015 Compiling @nguniversal/express-engine : es2015 as esm2015 chunk […]

  • Customize /graphql endpoint to serve different schemas

    0 In Hasura, is there a way to customise the /graphql endpoint so that for customer 1, it serves a schema at /graphql/customer1 and serves another at /graphql/customer2 for customer 2? Currently, all my schemas are displayed in /graphql endpoint and it creates clutter and also makes the data visible to all when used with […]

  • Is GraphQL API suitable for supermarket POS(Point-Of-Sales) application?

    0 I am developing a smart POS application that serves as an integrated software solution that facilitates efficient and modern point-of-sale operations for supermarkets. This system has the following functionalities. Sales processing and transaction management Inventory management Employee management Report and Analytics E-commerce integration Multi-Store support Customer management I chose ReactJS for the front-end, Springboot […]

  • Error when installing apollo/client in react-native app

    0 I am building a react native cli app and I want to use @apollo/client to reach the graphql server. But when running these commands npm install @apollo/client graphql I get the following error. npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: [email protected] npm ERR! Found: [email protected] npm ERR! node_modules/graphql npm […]

  • Discount Codes By A Customer ID Or Email using Graphql

    0 I am trying to select discount codes assigned to a logged-in user using admin graphql API. I am able to select all discount codes but I am not able to filter them by customer ID or customer email address. Here is my GQL. Can you guide me on how can limit the results to […]

  • Golang,gorm, postgress: invalid input is inserted

    0 when i perform request using https://localhost:8080/graphql end point I cant create user using mutation **the whole code:** package main import ( "fmt" "log" "net/http" "time" "github.com/graphql-go/graphql" "github.com/graphql-go/handler" "github.com/kaleabbyh/foodrecipie/config" _ "github.com/lib/pq" ) ** Note: the table users is succesfullly migrated using separate migration code having ‘User’ attributes** type User struct { ID int `gorm:"type:int;primary_key;identity(100,1)"` Name […]

  • How to use @live queries with graph-client?

    0 I have successfully configured graph-client, and following the documentation, I updated my .graphclientrc.yml including the following: plugins: – pollingLive: defaultInterval: 1000 This is the query I am trying to execute, which works just fine without the @live decorator: query GetOrderById($id: Bytes!, $historyOrder: OrderDirection!) @live { orders(where: { id: $id }) { id requester tokenAddress […]

  • Django app stopped working after installing django-graphql-auth

    -2 I was working on a Django application with GraphQL. I installed few required libraries. Everything seems to be working fine until I installed django-graphql-auth. Immediately after installing that, I’m getting below error. /Users/sukumar/IntellijProjects/venvs/plotcare_be/bin/python manage.py runserver Watching for file changes with StatReloader Exception in thread django-main-thread: Traceback (most recent call last): File "/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.8/lib/python3.8/threading.py", line 932, […]