very new to shopify and graphql
i created a sample shopify shop and installed shopify graphQL app in it.
when i run this query in the installed app i get results
when i run the same query from the C# code or GraphiQL
i get this error
"Field 'inventoryItems' doesn't exist on type 'QueryRoot'"
i have headers set like this.
The GraphiQL app uses the Admin GraphQL and you are trying the StoreFront GraphQL.
The Admin and StoreFront GraphQL are very different from one another. The admin GraphQL is used for creating/updating/deleting/outputing items from your store, but the StoreFront GraphQL is mainly used for outputting data since it's public and it will be huge security issue if could modify your store.
Because of that both APIs have different access to different methods and there are methods that are available only for the Admin GraphQL and the other way around, there are methods only available to the StoreFront GraphQL as well.
TL;DR inventoryItems method is not available for the Storefront GraphQL, you can access it from the Admin GraphQL.
Related
I want to implement a button on click it user will delete the user , for that we need graphql api , I got this documentation but it is not working on postman , https://shopify.dev/api/admin-graphql/2022-10/mutations/customerDelete
But it is not working it is saying customerDelete mutation does not exist , we use custom storefront api.
Storefront API is NOT the same as the Admin API. To delete a customer you would be needing to make calls to the Admin API endpoint, with a valid token that has permission to delete customers. So the answer for you is to get yourself an Admin API token to use that mutation.
I am using graphql feature of Orchard Core CMS. The queries work as it should. However, when I try to run a mutation it gives this error:
Schema is not configured for mutations
I'm trying to do a system that can make request of orders from different Shopify Stores (differents clients).
Each user of the system will have associated a Shopify Store. And I need to make a request to the store associated to bring data of the orders and products that have in his store.
Reading the documentation I saw that shopify has 3 types of apps to interact with the api: Public, Custom and Private.
Which of those should I use?
Thanks!
Hi I want to create schema for friends functionality. Where logged in user can send friend request to registered users. I have 2 table users and relation and can be able to get own friends. Its working in redux and react with node mysql. But I don’t know how i can achieve the same in GraphQL. I am using GraphQL prisma now using GraphQL cli
I suggest you learn about GraphQL here: https://graphql.org/learn/ and then about Prisma here: https://www.prisma.io/docs/
This will help you understand how to create a GraphQL Schema for your needs and how to use Prisma to abstract the database access
Well, for quite some time now, i've been doing some research on which plugin to use in Laravel 5.2 for the purpose of authenticating users in my website via their social networks accounts.
I wanted to use Hybridauth, but it is not compatible with Laravel 5.2, it is compatible only with Laravel 4.2. So, i was thinking of using Socialite, but the thing is that i want to give my user the ability to post his social network status via my own website.
So, is there a way that i could give my user this ability using Socialite?
Laravel Socialite handles authentication only.
You can get an access token for the various social media APIs using socialite, but the package does not offer any methods for interacting with those APIs.
If you want your user to be able to post to social media accounts you will need to write the code to interact with those APIs for use a package which provides that functionality, but it is beyond the scope of Socialite.