INNER CODE UNIT · TypeScript

world

prisma-labs/graphql-framework-experiment · src/cli/commands/create/app.ts:422

                    const world = ctx.memoryDB.worlds.find(w => w.name === worldToFindByName)
      
                    if (!world) throw new Error(\`No such world named "\${args.world}"\`)
      
                    return world
                  }
                })
      
                t.list.field('worlds', {
                  type: 'World',
                  resolve(_root, _args, ctx) {
                    return ctx.memoryDB.worlds
                  } 
                })
              }
            })
          `,
        },

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…