Skip to content
This repository was archived by the owner on Oct 26, 2025. It is now read-only.
This repository was archived by the owner on Oct 26, 2025. It is now read-only.

In moving from inline args to interface args, optionality is omitted #26

Description

@orta

Before:

export interface TodayPageResolver {
  (args: {day?: string , applyAccessControls?: boolean , forUserID?: string , partnerID?: string , partnerSlug?: string }, obj: { root: Query, context: RedwoodGraphQLContext, info: GraphQLResolveInfo }): Promise<RTTodayPage| null>;

After

interface TodayPageResolverArgs {
  day: string | undefined;
  applyAccessControls: boolean | undefined;
  forUserID: string | undefined;
  partnerID: string | undefined;
  partnerSlug: string | undefined;
  anonPuzzlesOnly: boolean | undefined;
}
/*SDL: todayPage(day: String, applyAccessControls: Boolean, forUserID: String, partnerID: String, partnerSlug: String, anonPuzzlesOnly: Boolean): TodayPage*/
export interface TodayPageResolver {
   (args: TodayPageResolverArgs, obj: { root: Query, context: RedwoodGraphQLContext, info: GraphQLResolveInfo }): Promise<RTTodayPage| null>;

should be day?: string

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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