Code-first GraphQL schemas with Pothos

  Рет қаралды 4,438

Jamie Barton

Jamie Barton

Күн бұрын

Пікірлер: 8
@holgerst3655
@holgerst3655 2 жыл бұрын
Thanks for all your great explanations in your videos.
@wayneswildworld
@wayneswildworld Жыл бұрын
You should probably show us how to do a mutation with input without a plugin first so we can know what the plugin is even doing. Also, you should probably include a git repository when you do these things.
@notrab
@notrab Жыл бұрын
Thanks. Code can be found here graphql.wtf/episodes/60-code-first-graphql-with-pothos
@patrikozafriko
@patrikozafriko Жыл бұрын
Been working with schema-first approach for years and after trying code-first with Prisma (which is using Pothos under the hood) approach I am terrified, the JS doc doesn't exist pretty much, if you are getting error from IDE, then it's so long and type intense to a point, where you can't even read that, error messages are strange and doesn't explain what's wrong, it's just a pain to work with, there are multiple magic helper functions that you are supposed to call to make stuff work, it's just really error prone. What's the point? Writing schema.graphql was always one of the smallest problems, even for complicated projects Schema-first can be also type safe with codegen, looks like Pothos is ruining the whole fun of GraphQL
@notrab
@notrab Жыл бұрын
I’d have to agree. I’ve always been a fan of SDL-first but I do see the benefits of code-first.
@chegevarra1036
@chegevarra1036 2 жыл бұрын
Can you show the final result what have you coding?
@bugs181
@bugs181 2 жыл бұрын
Not sure when it would be appropriate to use a code first approach unless it's a massive project that needs quality control. There's just far too much typing compared to schema-first approach. At that point, wouldn't it just be better to use codegen to build your schema from your code?
@wayneswildworld
@wayneswildworld Жыл бұрын
from what I have heard people on the internet say, pothos is the best approach to make sure your schemas are typesafe I am a noob however and know nothing
Build your own GraphQL REST directive
5:31
Jamie Barton
Рет қаралды 1,4 М.
GraphQL Crash course | easy way
45:57
Hitesh Choudhary
Рет қаралды 115 М.
отомстил?
00:56
История одного вокалиста
Рет қаралды 6 МЛН
POV: Your kids ask to play the claw machine
00:20
Hungry FAM
Рет қаралды 16 МЛН
💩Поу и Поулина ☠️МОЧАТ 😖Хмурых Тварей?!
00:34
Ной Анимация
Рет қаралды 1,5 МЛН
My GraphQL Performance Problem
13:33
Ben Awad
Рет қаралды 49 М.
Schema-first or code-first GraphQL
5:53
Jamie Barton
Рет қаралды 4,8 М.
Astro finally did it!
11:29
Nev the Dev
Рет қаралды 2,7 М.
How are my GraphQL APIs so fast?
1:01:04
SST
Рет қаралды 2 М.
Using Prisma with Nexus Schema
34:16
Leigh Halliday
Рет қаралды 11 М.
Redux не нужен. GraphQL и Apollo Client.
27:48
knowcity
Рет қаралды 52 М.
отомстил?
00:56
История одного вокалиста
Рет қаралды 6 МЛН