SearchableGuy
03/31/2020, 6:27 PMFran Dios
03/31/2020, 6:30 PMNima Shoghi
03/31/2020, 6:59 PMkyriakou
03/31/2020, 7:48 PMtype A {
checkedIn: [UserCheckedIn!]! // the ! outside the brackets is not getting reflected in the generated schema even though its reflected in the <http://prisma.io|prisma.io> playground. I am using prisma v1.34.10. This is quite unusual.
}kyriakou
03/31/2020, 7:48 PMPieter Soudan
03/31/2020, 7:50 PMPieter Soudan
03/31/2020, 7:52 PMPieter Soudan
03/31/2020, 7:52 PMPieter Soudan
03/31/2020, 7:53 PMIk
03/31/2020, 10:24 PMstephan
04/01/2020, 9:14 AMRobert Westbury
04/01/2020, 12:08 PMRobert Westbury
04/01/2020, 12:08 PMPanindra KR
04/01/2020, 4:31 PM@prisma/cli@2.0.0-beta.1 preinstall F:\prisma\demoOne\node_modules\@prisma\cli
node preinstall/index.jsinternal/fs/utils.js:230 throw err; ^ Error: ENOENT: no such file or directory, lstat 'C:\Users\vinsmart\AppData\Roaming\npm\node_modules' at Object.realpathSync (fs.js15887) at Object.794 (F:\prisma\demoOne\node_modules\@prisma\cli\preinstall\index.js153017) at __webpack_require__ (F:\prisma\demoOne\node_modules\@prisma\cli\preinstall\index.js1154) at Object.500 (F:\prisma\demoOne\node_modules\@prisma\cli\preinstall\index.js130472) at __webpack_require__ (F:\prisma\demoOne\node_modules\@prisma\cli\preinstall\index.js1154) at startup (F:\prisma\demoOne\node_modules\@prisma\cli\preinstall\index.js1291) at module.exports.8 (F:\prisma\demoOne\node_modules\@prisma\cli\preinstall\index.js1346) at Object.<anonymous> (F:\prisma\demoOne\node_modules\@prisma\cli\preinstall\index.js1356) at Module._compile (internal/modules/cjs/loader.js114730) at Object.Module._extensions..js (internal/modules/cjs/loader.js116710) { errno: -4058, syscall: 'lstat', code: 'ENOENT', path: 'C:\\Users\\vinsmart\\AppData\\Roaming\\npm\\node_modules' } npm WARN demoOne@1.0.0 No description npm WARN demoOne@1.0.0 No repository field. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @prisma/cli@2.0.0-beta.1 preinstall:
node preinstall/index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @prisma/cli@2.0.0-beta.1 preinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\vinsmart\AppData\Roaming\npm-cache\_logs\2020-04-01T16_24_20_406Z-debug.log
PS F:\prisma\demoOne> npm install @prisma/cli
@prisma/cli@2.0.0-beta.1 preinstall F:\prisma\demoOne\node_modules\@prisma\cli
node preinstall/index.js
Ranjan Purbey
04/01/2020, 11:20 PMPRAGMA foreign_keys=1 using prisma.raw ?Slackbot
04/02/2020, 12:15 AMrohit
04/02/2020, 12:53 AMRanjan Purbey
04/02/2020, 8:22 AMRain
04/02/2020, 9:35 AM<http://prisma.client.post|prisma.client.post>({ id, authorId: author.id});Rain
04/02/2020, 9:35 AMpost() only accept id as parameterRobert Westbury
04/02/2020, 10:34 AMError occurred during query execution:
ConnectorError(ConnectorError { user_facing_error: None, kind: QueryError(Error { kind: Db, cause: Some(DbError { severity: "ERROR", parsed_severity: Some(Error), code: SqlState("42601"), message: "syntax error at or near \")\"", detail: None, hint: None, position: Some(Original(93)), where_: None, schema: None, table: None, column: None, datatype: None, constraint: None, file: Some("scan.l"), line: Some(1149), routine: Some("scanner_yyerror") }) }) })
at PrismaClientFetcher.request (/home/robert/.cache/prisma/studio/home-robert-Projects-semita/runtime/index.js:1:51485)
at processTicksAndRejections (internal/process/task_queues.js:86:5)
Anyone know why this is happening when I create a row in studio?romain.charretteur
04/02/2020, 2:59 PMSeppe Snoeck
04/02/2020, 7:06 PMSeppe Snoeck
04/02/2020, 7:20 PMTaylor
04/02/2020, 9:24 PMAwey
04/02/2020, 9:42 PMmartin
04/03/2020, 7:39 AMiandjx
04/03/2020, 7:42 AMError: Cannot return null for non-nullable field Post.id.
when running this resolver
t.field('posts', {
type: 'Post',
resolve: (parent, args, ctx) => ctx.prisma.post.findMany(),
})
but switching to`findOne()` Â allows me to run the resolver without any problems
github linkTristan
04/03/2020, 11:02 AMnode index.js. Thats obviously a typo so I changed it to node index.ts.
Im getting the following error. I am a front end dev just starting to play on the backend so Im used to the import syntax and would rather stick with that than switch back to using require. Anyone have advice for how I should solve this?
import { PrismaClient } from '@prisma/client';
^
SyntaxError: Unexpected token {
at Module._compile (internal/modules/cjs/loader.js:872:18)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:947:10)
at Module.load (internal/modules/cjs/loader.js:790:32)
at Function.Module._load (internal/modules/cjs/loader.js:703:12)
at Function.Module.runMain (internal/modules/cjs/loader.js:999:10)
at internal/main/run_main_module.js:17:11iandjx
04/03/2020, 1:04 PMProject type that has Members[] . How do I console.log the value of Members[] using nexus? Right now I can only access these values through the playground.