Re:Build declaratively back ends and APIs with GraphQL or REST
by boomskats on Saturday August 12, 2023 @09:07AM
(#37099783)
This is nicely done. I like your marketing. I made it 98% of the way through reading your website, I was almost convinced. Then, I ran into a couple of typos right at the very end, that instead led to me writing you this comment on HN.
Re:Build declaratively back ends and APIs with GraphQL or REST
by thangngoc89 on Saturday August 12, 2023 @09:48AM
(#37100134)
As a non-native English speakers myself, ChatGPT has been a valuable tool. It's not about the small typos and errors (which tools like Grammarly could help), it's about the tone and everything.
Re:Build declaratively back ends and APIs with GraphQL or REST
by jitl on Saturday August 12, 2023 @09:24AM
(#37099915)
This promises the world but I had to work hard to find a code example, and even then I didn’t really “get” what the library will do for me in practice.
Re:Build declaratively back ends and APIs with GraphQL or REST
by zifeo on Saturday August 12, 2023 @10:12AM
(#37100386)
Prisma is one of the runtime currently supported [1]. Metatype enables you to compose multiple runtimes together. Let's say you have model/struct product (id, name, similarProducts), the two first attributes may be stored in Prisma (like you would do it normally), the third one can come from another runtime such as an HTTP api and the engine will take care of resolving the data together. You can also add an authorization policy on any of the fields.
Re:Build declaratively back ends and APIs with GraphQL or REST
by dtkav on Sunday August 13, 2023 @01:37AM
(#37107004)
This is great work! I just worked on something very similar and it was extremely powerful.
I'm looking forward to setting aside some time to read the code. I'm particularly interested in how you approached API evolution and backwards compatibility.
Do you have any plans to start a company around this?
Re:Build declaratively back ends and APIs with GraphQL or REST
by zifeo on Sunday August 13, 2023 @04:12PM
(#37113905)
For now, we mostly focus on building solid foundations and having a design that can be easily extended by the users. It is already run in production at some local companies and we will see whether this is more adoptions in the next months.
Regarding backwards compatibility, we believe that GraphQL's approach is kind of incomplete and that more guarantees can be provided by the server. Nothing concrete yet, but happy to exchange a few ideas!
[^1] https://metatype.dev/docs/reference/runtimes
I'm looking forward to setting aside some time to read the code. I'm particularly interested in how you approached API evolution and backwards compatibility.
Do you have any plans to start a company around this?
Regarding backwards compatibility, we believe that GraphQL's approach is kind of incomplete and that more guarantees can be provided by the server. Nothing concrete yet, but happy to exchange a few ideas!