sudo lsof -i:5000
kill -9 12345
| <h3>Checkboxes</h3> | |
| <div> | |
| <input id="checkbox-1" class="checkbox-custom" name="checkbox-1" type="checkbox"> | |
| <label for="checkbox-1" class="checkbox-custom-label">First Choice</label> | |
| </div> |
| function isJson(str) { | |
| try { | |
| JSON.parse(str); | |
| } catch (e) { | |
| return false; | |
| } | |
| return true; | |
| } |
| const data = [ | |
| {id: 1, name: "Sample 1"}, | |
| {id: 2, name: "Sample 2"}, | |
| {id: 3, name: "Sample 3"} | |
| ] | |
| const moveObject = (arr, targetKey, targetValue, newIndex) => { |
sudo lsof -i:5000
kill -9 12345
| const query = await client.graphQLClient.query(root => { | |
| root.add('node', { | |
| args: { | |
| id: checkoutId | |
| }, | |
| alias: 'checkout' | |
| }, node => { | |
| node.add('id') | |
| node.addInlineFragmentOn('Checkout', Checkout => { | |
| Checkout.add('subtotalPrice') |
| # const { importSchema } = require("graphql-import"); | |
| # importSchema("app/graphql/schema.graphql") | |
| # Fixed | |
| const { | |
| ApolloServer, | |
| gql | |
| } = require("apollo-server-express"); | |
| const fs = require("fs"); | |
| const typeDefs = gql` |
| # const { importSchema } = require("graphql-import"); | |
| # importSchema("app/graphql/schema.graphql") | |
| # Fixed | |
| const { | |
| ApolloServer, | |
| gql | |
| } = require("apollo-server-express"); | |
| const fs = require("fs"); | |
| const typeDefs = gql` |
| directive @isAuth on FIELD_DEFINITION | |
| type Mutation { | |
| addPost(title: String!, content: String! ): Post @isAuth | |
| } |
| # Add timestamp on history | |
| echo 'HISTTIMEFORMAT="%d/%m/%y %T "' >> ~/.bashrc |
I hereby claim:
To claim this, I am signing this object: