Category: Altair GraphQL Client
-
Post Views: 23 1. In Altair GraphQL Client, click the button on the left side of the overloaded document in the address bar, the drop-down list will appear, and select Add to Favorites. as shown in Figure 1 2. Select a collection to create a new favorite. as shown in Figure 2 3. Named collection: Shop GraphQL API, choose a…
-
Post Views: 23 1. Run successfully in Altair GraphQL Client. as shown in Figure 1 2. Edit the test file, /modules/themestore/tests/functional/graphql/MutationThemeAssetGraphQLapTest.php. 3. Run the test case and report an error: Expected Type ThemeAssetCreateInput to be an object. as shown in Figure 2 4. Re-edit the test file 5. Run the test again and the test passes. 6. Run the test…
-
Post Views: 23 1. Add Template to create a template. as shown in Figure 1 2. Click the save button to view the network request. Request URL:https://xxx.myshopify.com/admin/themes/111/assets. Request method: POST. This is the REST implementation. as shown in Figure 2 Requested form data: Response data: 3. The API for creating template files is not implemented in GraphQL. Decided to refer…
-
Post Views: 19 1. Reference:https://shopify.dev/api/admin-graphql#authentication, all GraphQL Admin API queries require a valid Shopify access token. 2. Open the background – Apps – Develop applications – Create custom apps. as shown in Figure 1 3. Enter the application name, select the application developer, and create the application. as shown in Figure 2 4. Configure the background API range. as shown…
-
Post Views: 17 1. Request in Altairhttps://object.local/graphql, Response: “Http Failure Response forhttps://object.local/graphql:0 unknown error”. As shown in Figure 1 2. It needs to be opened in the browser:https://object.local, and then find that the Chrome browser is safely intercepted, after selecting trust, request againhttps://object.local/graphql, the response 200. as shown in Figure 2
-
Post Views: 18 1. Get started with the GraphQL server with Lighthouse. Reference URL:https://lighthouse-php.cn/tutorial/ 2. Create a GraphQL API for a simple blog from scratch. Create a new Laravel project via Composer: lighthouse-tutorial 3. Create a database: lighthouse_tutorial, and configure the database connection in .env. Run the database migration to create the Users table 4. Put some fake user data…
