Skip to content

N00b question - is it possible to query on certain fields? #1

@tomkennedy22

Description

@tomkennedy22

Is it possible to query on certain fields? I dont need all of them, only a few.

const games = await getGames({
    query: {
        year: 2023,
        classification: 'fbs',
    },
});

Something like:

const games = await getGames({
    fields: [
          "homeId", "awayId", "week"
     ],
    query: {
        year: 2023,
        classification: 'fbs',
    },
});

And unrelated, but is it possible to build nested queries - like query all teams, then their games are nested in a games array? Kinda like in pure GQL or Prisma or something?

Thanks y'all!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions