You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also, I did complete the next step: 2.2. Add a createProfile GraphQL mutation. If I remove the line for the profile for the user then everything works.
The error is
[INFO] 13:55:20 Restarting: C:\prisma_postgresql_api\typescript_graphql\src\schema\user.ts has been modified
PothosSchemaError: Ref ObjectRef has not been implemented
at new PothosError (C:\prisma_postgresql_api\typescript_graphql\node_modules@pothos\core\src\errors.ts:7:5)
at new PothosSchemaError (C:\prisma_postgresql_api\typescript_graphql\node_modules@pothos\core\src\errors.ts:14:5)
at ConfigStore.getTypeConfig (C:\prisma_postgresql_api\typescript_graphql\node_modules@pothos\core\src\config-store.ts:289:13)
at BuildCache.getType (C:\prisma_postgresql_api\typescript_graphql\node_modules@pothos\core\src\build-cache.ts:444:41)
at BuildCache.getOutputType (C:\prisma_postgresql_api\typescript_graphql\node_modules@pothos\core\src\build-cache.ts:458:23)
at BuildCache.buildOutputTypeParam (C:\prisma_postgresql_api\typescript_graphql\node_modules@pothos\core\src\build-cache.ts:283:36)
at BuildCache.buildFields (C:\prisma_postgresql_api\typescript_graphql\node_modules@pothos\core\src\build-cache.ts:345:20)
at BuildCache.getObjectFields (C:\prisma_postgresql_api\typescript_graphql\node_modules@pothos\core\src\build-cache.ts:410:31)
at BuildCache.getFields (C:\prisma_postgresql_api\typescript_graphql\node_modules@pothos\core\src\build-cache.ts:425:19)
at fields (C:\prisma_postgresql_api\typescript_graphql\node_modules@pothos\core\src\build-cache.ts:558:26)
[ERROR] 13:55:21 PothosSchemaError: Ref ObjectRef has not been implemented
I am following the example:
https://github.com/prisma/prisma-examples/tree/latest/typescript/graphql#using-the-graphql-api.
At the following step (section 2.1) the code breaks.
Update the User object type to include the `profile field:
Also, I did complete the next step: 2.2. Add a createProfile GraphQL mutation. If I remove the line for the profile for the user then everything works.
The error is
[INFO] 13:55:20 Restarting: C:\prisma_postgresql_api\typescript_graphql\src\schema\user.ts has been modified
PothosSchemaError: Ref ObjectRef has not been implemented
at new PothosError (C:\prisma_postgresql_api\typescript_graphql\node_modules@pothos\core\src\errors.ts:7:5)
at new PothosSchemaError (C:\prisma_postgresql_api\typescript_graphql\node_modules@pothos\core\src\errors.ts:14:5)
at ConfigStore.getTypeConfig (C:\prisma_postgresql_api\typescript_graphql\node_modules@pothos\core\src\config-store.ts:289:13)
at BuildCache.getType (C:\prisma_postgresql_api\typescript_graphql\node_modules@pothos\core\src\build-cache.ts:444:41)
at BuildCache.getOutputType (C:\prisma_postgresql_api\typescript_graphql\node_modules@pothos\core\src\build-cache.ts:458:23)
at BuildCache.buildOutputTypeParam (C:\prisma_postgresql_api\typescript_graphql\node_modules@pothos\core\src\build-cache.ts:283:36)
at BuildCache.buildFields (C:\prisma_postgresql_api\typescript_graphql\node_modules@pothos\core\src\build-cache.ts:345:20)
at BuildCache.getObjectFields (C:\prisma_postgresql_api\typescript_graphql\node_modules@pothos\core\src\build-cache.ts:410:31)
at BuildCache.getFields (C:\prisma_postgresql_api\typescript_graphql\node_modules@pothos\core\src\build-cache.ts:425:19)
at fields (C:\prisma_postgresql_api\typescript_graphql\node_modules@pothos\core\src\build-cache.ts:558:26)
[ERROR] 13:55:21 PothosSchemaError: Ref ObjectRef has not been implemented
Here is what I have for the profile.ts
Here is what I have for the user.ts
The text was updated successfully, but these errors were encountered: