Year: 2022
-
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: 15 1. Now the translation strings are stored in the files in the resources/lang directory. In this directory, every language supported by the application should have a corresponding subdirectory: 2. The previous call method: return trans(online_store_theme_graphql::validation.custom.theme_editor_session.theme_editor_session_id_exists_rule); 3. Plan to translate files are stored in the resources/lang directory in JSON format 3. Deliberately distinguish /en/validation.php from en.json to confirm…
-
Post Views: 17 1. The value of the string: E:\wwwroot\object\storage\app/theme_dow nloads/2022/05/25/1653468314.0994.1295326141.zip 2. Values of other characters: E:\wwwroot\object\storage\app/ 3. The code is implemented as follows 4. Results: _downloads/2022/05/25/1653468314.0994.1295326141.zip. Expected is: Theme_Downloads/2022/05/25/1653468314.0994.1295326141.zip. as shown in Figure 1 5. The code implementation is adjusted as follows, remove the last / of the values of other characters 6. The results are in line with…
-
Post Views: 22 1. The database migration implementation is as follows, and an index is added to the UUID type field. 2. After the migration is performed, the table field type is char(36). as shown in Figure 1 3. In the constructor of the model file, set the field value of the UUID type to: str::OrderDuUID() to take advantage of…
-
Post Views: 16 1. Execute SQL as follows 2. Error: 1093 – you canT specific target tablexx_themesfor update in from clause. as shown in Figure 1 3. Reference:https://dev.mysql.com/doc/refman/5.7/en/update.html, in MySQL, you cannot modify the same table used in the Select section. You can connect the table to itself, which will cause MySQL to treat the table as two different things,…
-
Post Views: 17 1. When executing php artisan config:clear, an error is reported: ErrorException : include(e:\wwwroot\object\vendor\composer/../../modules/them eStoreGraphQL/Providers/GraphQLResolverServiceProvider.php): Failed to open stream: no such file or directory. as shown in Figure 1 2. Confirm the file modules/themestoreGraphQL/providers/GraphQLResolverServiceProvider.php It no longer exists and is renamed: modules/OnlineStoreEthemeGraphQL/Providers/GraphQLResolverServiceProvider.php 3. Execute the composer install command to regenerate vendor\composer\classloader.php. Error: in providerRepository.php line 208: classModules\ThemeStoreGraphQL\Providers\GraphQLResolverServiceProviderNot found…
-
Post Views: 17 1. Paste the contents of the JSON file into a PHP file. The format is lost after pasting. as shown in Figure 1 2. After copying, in the php file, right-click – copy/paste special – paste as plain text. as shown in Figure 2 3. The pasted format is already in json format, as shown in Figure…