News for hackers. Stuff that matters.
Re:MikroOrm v4 /w GraphQL example project that I created ove... by olso on Monday August 10, 2020 @12:43PM (#24111201)
We are using

ts + apollo-server-koa + dataloader (caching) + knex + graphql-codegen + schemats (for types generated from postgres)

It works great. We only have issues with gql resolver types, when resolver expects a string, but in reality, resolver can be a function that returns a string

This is completely valid

  export const resolver: Place = {
    id: ({ id }: GeneratedDb.Place) => toGlobalId(TYPE,  String(id)),
But typings expect

  export const resolver: Place = {
    id: 'xxx',

There are no comments on this comment yet.