Skip to content

Support number is an input for BigInt fields #4195

@matthewmueller

Description

@matthewmueller

Problem

Currently for BigInt fields, we only support BigInt. It would be convenient to also allow number as an input

export type Post = {
  id: number
  title: string
  body: string
  userId: number
  visitors: BigInt | null
}

Suggested solution

Also allow number as an input since number is a subset of BigInt. This will not be possible for the output types.

export type Post = {
  id: number
  title: string
  body: string
  userId: number
  visitors: BigInt | number | null
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions