Category: GraphQL
-
Post Views: 15 1. Only errors are reported in Linux: Failed to load type: OnlineStoreEthemePreset. Make sure the type is present in your schema definition. It is available in the local Windows 10 environment. as shown in Figure 1 2. Execute the command: php artisan cache: clear, clear the cache. The interface request was successful. The reason is that GraphQL…
-
Post Views: 13 1. Error in GraphQL: variable “$sessionID” of type “string” used in position expecting type “string!”.. as shown in Figure 1 2. View request query 3. Check the GraphQL document, $sessionId: String!. is missing !. as shown in Figure 2 4. After the adjustment in the request query, no more errors are reported. as shown in Figure 3
-
Post Views: 21 1. GraphQL architecture is defined as follows 2. Print the output 1 in the method __invoke in the class TemplateDetailsResolver, not output. as shown in Figure 1 3. The GraphQL schema definition is restored as follows, then the corresponding class method __invoke can be executed. as shown in Figure 2 4. Decide to split the GraphQL schema…
-
Post Views: 17 1. Argument 1 passed to nuwave\\lighthouse\schema\\typeregistry::get() must be of the type string, array given, Called in E:\\WWWRoot\\Object\Object\Vendor\\Nuwave\LightHouse\src\Schema\\Typeregistry.php on line 553. as shown in Figure 1 2. Edit the code and add __typename to the return parameter
-
Post Views: 21 1. Report an error in Lighthouse: Failed to load type: themesettingrange. Make sure the type is present in your schema definition. There is an error message when viewing the request in the GraphQL client. as shown in Figure 1 2. Print the data to be responded to and find[__typename]=> ThemeSettingRange. as shown in Figure 2 3. Adjust…
-
Post Views: 13 1. Error in PHP 7.4: Illegal offset type in issue or empty. as shown in Figure 1 2. The code is as follows: 3. Print $setting, its value is the object. as shown in Figure 2 4. will $setting[‘settingId’]Convert to string. 5. The value of the printed and converted string is as follows 6. No more errors.
-
Post Views: 16 1. In response to the error in the GraphQL API: Expected a value of type \”URL\” but received: (Empty String). as shown in Figure 1 2. Print the object of the response, its value is String(0) “”. 3. Set in GraphQL, value: url . is allowed for null. But when it is String(0) “” , it is…
-
Post Views: 16 1. Respond to the GraphQL API and report an error: fields “default” cause they return conflicting types float! and boolean!. use Different aliases on the fields to fetch both if this was interested. 2. Check the query request and find that there is a corresponding prompt: fields “default” cause they return conflicting types “float!” and “boolean!”. Use…
-
Post Views: 16 1. In Laravel Framework 6.20.44, Nuwave/Lighthouse V5.52.1, an error is reported: Argument 1 Passed to App\\Exceptions\\Handler::report() must be an instance of exception, instance of error given, called in E:\WWRoot\\Object\Vendor\\nuwave\Lighthouse\src\execution\\reportingErrorHandler.php on line 39. as shown in Figure 1 2. Reference:https://www.shuijingwanwq.com/en/2022/01/26/9945/. The root cause is that the framework is not compatible with the extended version. However, it is now…
-
Post Views: 19 1. In Laravel Framework 6.20.44, Nuwave/Lighthouse V5.52.1, an error is reported: Argument 1 Passed to App\\Exceptions\\Handler::report() must be an instance of exception, instance of error given, called in E:\WWRoot\\Object\Vendor\\nuwave\Lighthouse\src\execution\\reportingErrorHandler.php on line 39. as shown in Figure 1 2. Reference:https://www.shuijingwanwq.com/en/2022/01/26/9945/. The root cause is that the framework is not compatible with the extended version. However, it is now…