fix: Correctly type Float properties (#13585)

* Update get-attribute.ts

* update test

* add changeset

* Update .changeset/cold-experts-breathe.md

---------

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
This commit is contained in:
Aldo Román
2025-09-25 14:37:37 +03:00
committed by GitHub
parent 7af9e3224c
commit 45f180a2b5
3 changed files with 8 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ describe("GraphQL builder", () => {
username: model.text(),
email: model.hasOne(() => email, { mappedBy: "owner" }),
spend_limit: model.bigNumber(),
rate: model.float(),
phones: model.array(),
group: model.belongsTo(() => group, { mappedBy: "users" }),
role: model
@@ -84,6 +85,7 @@ describe("GraphQL builder", () => {
username: String!
email: Email!
spend_limit: Float!
rate: Float!
phones: [String]!
group_id:String!
group: Group!

View File

@@ -10,6 +10,7 @@ const GRAPHQL_TYPES = {
dateTime: "DateTime",
number: "Int",
bigNumber: "Float",
float: "Float",
text: "String",
json: "JSON",
array: "[String]",