Category: Web Application Development
-
Post Views: 19 1. In Laravel 6, after the model applies soft deletion, the record is inserted again, and the unique key conflicts. as shown in Figure 1 2. The reason is that after applying soft deletion, when you use the delete method on the model instance, the current date and time will be written to the deleted_at field. At…
-
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: 14 1. There is a php Blade code block, which is placed in mysql, and its code is stored in the field schema, as shown in Figure 1 2. Some variables, already declared in the php script, the code block is shown below 3. The code of the compiled template file is as follows. 4. Decided to skip…
-
Post Views: 19 1. The command in the task queue artisan::call, the code is as follows 2. Check the generated log file to confirm that the command has been executed. Confirm that the command was not executed because the log file of -1 was not generated. as shown in Figure 1 3. Decide to manually execute the command line in…
-
Post Views: 20 1. Install a theme, which is implemented based on the queue. The code is as follows 2. Based on the preliminary analysis conclusion, when the material to the synchronization theme is executed to the CDN, it feels like the operation of the program is suddenly interrupted. the present situation. as shown in Figure 1 3. It feels…
-
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: 20 1. Lerna err! Yarn run prod exited 1 in@theme/objectError command failed with exit code 1. as shown in Figure 1 2. Decide to delete the directory: node_modules, and execute the yarn and yarn prod commands again.
-
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…