picosam
03/15/2018, 5:27 PMyarn debug on my Prisma project!harmony
03/15/2018, 5:31 PMhttps://i.imgur.com/q7eCKyU.png▾
harmony
03/15/2018, 5:32 PMharmony
03/15/2018, 5:32 PMpicosam
03/15/2018, 5:34 PMpicosam
03/15/2018, 5:38 PMConnection refused: localhost/127.0.0.1:9229 errorpicosam
03/15/2018, 5:40 PMyarn debug! What I’m trying to do is hit the breakpoint before it fails to start…harmony
03/15/2018, 5:44 PM--inspect-brk in the scriptharmony
03/15/2018, 5:44 PMharmony
03/15/2018, 5:46 PMhttps://i.imgur.com/8vCF9XC.png▾
harmony
03/15/2018, 5:46 PMpicosam
03/15/2018, 5:46 PMlawjolla
03/15/2018, 5:47 PMharmony
03/15/2018, 5:47 PMlawjolla
03/15/2018, 5:47 PMharmony
03/15/2018, 5:48 PMDebugger listening on <ws://127.0.0.1:9229/0ab18b05-e447-4ee5-a355-a27e6fa65953>picosam
03/15/2018, 5:48 PM→ yarn debug
yarn run v1.5.1
$ dotenv -- nodemon -e ts,graphql -x ts-node --inspect-brk src/index.ts
[nodemon] 1.17.2
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `ts-node --inspect-brk src/index.ts`harmony
03/15/2018, 5:48 PMpicosam
03/15/2018, 5:48 PMharmony
03/15/2018, 5:49 PMpicosam
03/15/2018, 5:49 PMharmony
03/15/2018, 5:53 PM--inspect?picosam
03/15/2018, 5:53 PM→ yarn debug
yarn run v1.5.1
$ dotenv -- nodemon -e ts,graphql -x ts-node --inspect src/index.ts
[nodemon] 1.17.2
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `ts-node --inspect src/index.ts`harmony
03/15/2018, 5:53 PMpicosam
03/15/2018, 5:53 PMdirectiveResolvers in therelawjolla
03/15/2018, 5:54 PMharmony
03/15/2018, 5:54 PMnode --inspect-brk -r dotenv/config -r ts-node/register src/index.ts?picosam
03/15/2018, 5:56 PMdirectiveResolvers out, it workedlawjolla
03/15/2018, 5:56 PMpicosam
03/15/2018, 5:56 PMServer is running on <http://localhost:4000> only appears when I run yarn dev and never when I run yarn debugpicosam
03/15/2018, 5:56 PMpicosam
03/15/2018, 5:57 PMharmony
03/15/2018, 5:57 PMharmony
03/15/2018, 5:58 PMpicosam
03/15/2018, 5:59 PM→ yarn debug
yarn run v1.5.1
$ dotenv -- nodemon -e ts,graphql -x node --inspect-brk -r dotenv/config -r ts-node/register src/index.ts
[nodemon] 1.17.2
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node --inspect-brk -r dotenv/config -r ts-node/register src/index.ts`
Debugger listening on <ws://127.0.0.1:9229/4b0cecbd-4e60-4905-9dcf-12504daf95ab>
For help see <https://nodejs.org/en/docs/inspector>picosam
03/15/2018, 5:59 PMdirectiveResolvers still out! Let me try and uncomment it… the idea is to try and reach the breakpoint before the server starts.lawjolla
03/15/2018, 5:59 PMlawjolla
03/15/2018, 6:00 PMharmony
03/15/2018, 6:01 PMpicosam
03/15/2018, 6:01 PM"graphql-yoga": "^1.6.0",harmony
03/15/2018, 6:01 PMpicosam
03/15/2018, 6:01 PMlawjolla
03/15/2018, 6:02 PMpicosam
03/15/2018, 6:03 PMgraphql-tools explicitly 😯picosam
03/15/2018, 6:05 PM"graphql-tools": "^2.23.0"picosam
03/15/2018, 6:05 PMError: SchemaDirectiveVisitor for @isAuthenticated must implement visitQuery methodlawjolla
03/15/2018, 6:07 PMlawjolla
03/15/2018, 6:07 PMlawjolla
03/15/2018, 6:08 PMlawjolla
03/15/2018, 6:08 PMpicosam
03/15/2018, 6:08 PMlawjolla
03/15/2018, 6:09 PMpicosam
03/15/2018, 6:10 PMpicosam
03/15/2018, 6:11 PM→ npm ls graphql-tools
mblt-gql@2.0.0 /Users/Sammy/Projects/mblt-gql
├── graphql-tools@2.23.0
├─┬ graphql-yoga@1.6.0
│ └── graphql-tools@2.23.0 deduped
└─┬ prisma-binding@1.5.16
├─┬ graphql-binding@1.2.5
│ └── graphql-tools@2.21.0
└── graphql-tools@2.21.0picosam
03/15/2018, 6:12 PMlawjolla
03/15/2018, 6:13 PMlawjolla
03/15/2018, 6:13 PMlawjolla
03/15/2018, 6:14 PMpicosam
03/15/2018, 6:14 PMlawjolla
03/15/2018, 6:15 PMlawjolla
03/15/2018, 6:15 PMpicosam
03/15/2018, 6:15 PMpicosam
03/15/2018, 6:15 PMlawjolla
03/15/2018, 6:16 PMpicosam
03/15/2018, 6:17 PMpicosam
03/15/2018, 6:18 PMFIELD_DEFINITION is relative to QUERY | MUTATIONpicosam
03/15/2018, 6:20 PMlawjolla
03/15/2018, 6:24 PMlawjolla
03/15/2018, 6:25 PMlawjolla
03/15/2018, 6:25 PMdirective @auth on FIELD | FIELD_DEFINITIONlawjolla
03/15/2018, 6:27 PMlawjolla
03/15/2018, 9:51 PMpicosam
03/15/2018, 9:56 PM