This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create GraphJin | |
sg, err := core.NewGraphJin(nil, db) | |
if err != nil { | |
log.Fatal(err) | |
} | |
// Your GraphQL query | |
query := ` | |
query { | |
users(id: 5) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create GraphJin | |
sg, err := core.NewGraphJin(nil, db) | |
if err != nil { | |
log.Fatal(err) | |
} | |
// Your GraphQL query | |
query := ` | |
query { | |
posts { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
) | |
func main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ npx create-snowpack-app web --template @snowpack/app-template-react --use-yar | |
$ cp old/public web/public | |
$ cp old/src web/src | |
$ cp old/package.json web/package.json | |
$ yarn add --dev snowpack@next | |
$ yarn snowpack install | |
yarn run v1.22.4 | |
$ /Users/vikram/src/santacruz/web/node_modules/.bin/snowpack install | |
Error: Cannot find module '@snowpack/app-scripts-react' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
web · master± ⟩ yarn add --dev snowpack@next | |
web · master± ⟩ yarn snowpack install | |
yarn run v1.22.4 | |
$ /Users/vikram/src/santacruz/web/node_modules/.bin/snowpack install | |
Error: Cannot find module '@snowpack/app-scripts-react' | |
Require stack: | |
- /Users/vikram/src/santacruz/web/node_modules/snowpack/dist-node/index.js | |
- /Users/vikram/src/santacruz/web/node_modules/snowpack/dist-node/index.bin.js | |
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:976:15) |