Category: Web Application Development
-
Post Views: 17 1. In GraphQL Mutation, in the same HTTP request, only one mutation is now executed. as shown in Figure 1 2. When there are too many HTTP requests per unit time, the current limit of the interface will be triggered. as shown in Figure 2 3. It is planned to execute multiple mutations in the same HTTP…
-
Post Views: 17 1. Table TABLE_A is in the A database, and the table TABLE_B is in the B database. The two tables are linked together via columns table_a.id , table_b.table_a_id . 2. Refer to the advanced JOIN statement:https://learnku.com/docs/laravel/6.x/queries/5171#211e4f. Reference:https://stackoverflow.com/questions/41423603/join-two-mysql-tables-in-different-databases-on-the-same-server-with-laravel-elo. as shown in Figure 1 3. The final code is as follows 4. The final generated SQL is as follows,…
-
Post Views: 19 1. Define in the GraphQL schema file as follows 2. In the custom validator class Validator classes modules\\OnlineStoreEthemeGraphQL\\Validators\\UnpublishThemeValidator, the code is implemented as follows 3. The request verification failed, which is in line with expectations. as shown in Figure 1 4. Confirm the sql generated by the verification rule again, and generate the following. as shown in…
-
Post Views: 16 1. In Laravel 6, execute the UpdateOrCreate method to update the existing model or create a new model if it does not exist. The last generated sql is as follows, the field checksum is missing. as shown in Figure 1 2. The code is implemented as follows: 3. Print the variable $extra, and determine that the field…
-
Post Views: 65 1. When executing: npm install, it has been executed for about half an hour, and an error is reported: if you are behind a proxy, please make sure that theProxyconfig is set properly. . as shown in Figure 1 2. Check the npm proxy settings, the value is: https://127.0.0.1:8888/ 3. Decide to delete the npm proxy settings.…
-
Post Views: 15 1. There was an implementation before, which is to judge a specific record, whether it meets a certain complex nesting condition, and the code is implemented as follows 2. Now you need to query all records that meet this complex nesting condition, refer to:https://learnku.com/docs/laravel/6.x/queries/5171#2f5914, the code is implemented as follows 3. The final generated SQL is in…
-
Post Views: 15 1. Reference: In Refactoring: Improve the Design of Existing Code (2nd Edition), run test cases based on Mocha. 2. MOCHA allows you to use any of the assertion libraries you want. In the above example, we used Node.js’s built-in assertion module. Schedule to use assertion library Chai. 3. Reference:https://mochajs.org/#assertions. The assertion library Chai supports expect(), assert() and…
-
Post Views: 18 1. Reference: Install Shopify CLI 3.0 (based on Node.js) in Windows 10 Professional Edition. After installation, you will be prompted that the new version of Shopify CLI is available! Your version is 2.15.6 and the latest version is 2.34.0. To upgrade, follow the instructions of the package manager you are using:https://shopify.dev/tools/cli/troubleshooting#upgrade-shopify-cli 2. To upgrade Shopify CLI 3.x…
-
Post Views: 19 1. Reference:https://shopify.dev/themes/tools/cli/install#requirements, the requirements in Windows are as follows 2. The version of Node.js is: V16.13.1, which is higher than 14.17.0. meet the requirements. 3. Reference:https://www.shuijingwanwq.com/2022/05/10/6388/. Steps 1 and 2. The version of Ruby+DevKit is: 3.1.x (x64), which is higher than Ruby+DevKit 3.0. meet the requirements. 4. The version of Bundler is: 2.3.24, which is higher than…