Tag: graphql
-
Cors Problem with Node, typescript, GraphQl and Appllo
0 I’m getting corns with my application. Have I configured my server incorrectly ? I’m trying to create a user in my PostgreeSQL database via the frontend. I’ve made a tsx component which is a form. When I submit the data, it returns a cors error, my frontend being at localhost:3000 and my backend at…
-
cors problem with node, typescript, apollo and graphql
0 I’m getting corns with my application. Have I configured my server incorrectly ? I’m trying to create a user in my PostgreeSQL database via the frontend. I’ve made a tsx component which is a form. When I submit the data, it returns a cors error, my frontend being at localhost:3000 and my backend at…
-
Opensearch 2.7 location search using @searchable through graphql
0 I’m developing a React Native app using the AWS Amplify GraphQL API. Whenever a user posts, I also capture their latitude and longitude. I’d like to use this data to identify and show other users within a 20-mile radius of that user. I discovered that OpenSearch can help with this, and by adding the…
-
I have graphql syntax error from BuildSchema
0 I use nodejs with typescript for my project and I decided to use graphql but I have a problem I tried many things but I am still in one place when I tried to debug the problem I found that this error occurs when I use "BuildSchema" from "graphql" package. so I give you…
-
Strapi – Delete an item from nested repeatable component
0 I would like to know if it is possible to delete an item from a nested object via API or graphQL. I have a collection type (restaurant) with a repeatable component inside called "franchise" (Florida and New York). I would like to delete just one of those (Florida for example). Is that possible? API…
-
Error in .net core with postgreSQL and graphQL to get json column for all records
0 I am using .NET Core 7.0 with PostgreSQL and graphQL. I am getting an error when I try to get all records from the database using the below code. When I try to get a single record then it is working fine. Error: The source ‘IQueryable’ doesn’t implement ‘IAsyncEnumerable<Vcp.Doctors.Gql.Models.ProviderInformation>’. Only sources that implement ‘IAsyncEnumerable’…
-
how to add product to shop cart via apollo and react
0 I try to use useMutation to add product to cart by button click, but after a lot of attempts it still don’t work and i can’t understand how to make it work. my code looks like that: product.jsx const [add, {error: addError}] = useMutation(ADD_CART, { update(cache, { data: { add } }) { cache.modify({…
-
How do I define a typeDefs in a Schema for the following Response
0 I am Trying to Define a typeDefs for the following response in graphql CompactRes={ "Compact": [ [ 0, 1, 2, 3 ], [ 4, 5, 6, [ 7, 2.567 ] ]]} Here is my Schema const typeDefs = gql` type Compact{ compact:[[Float]] } type Query { response(count: ID!): Compact } `; const resolvers =…
-
shell_exec curl to GraphQL API – Bad Request
0 I’m trying play with a website’s GraphQL API (https://www.xxxlutz.hu/api/graphql) to scrape data. In Altair working fine, but I need to run in PHP with curl_impersonate to bypass Cloudflare. I tried this, and working fine: $d = ‘{"query":"query {navigation(codes: ["header_nav_root"], levelAmount:2 , levelOffset:0){data}}"}’; $curl_impersonate_exec_command = ‘/usr/local/bin/curl_chrome100 -g -L "’ . $url . ‘" -X POST…