Skip to content

Replace GQL type ID with Int #1176

@ZZwatermelon

Description

@ZZwatermelon

In a lot of places we use the GQL ID type when passing around primary keys such as userID and makerspaceID.
This seems like it makes sense on the surface, but GQL encodes/decodes the ID type as strings, which causes issues when we essentially always expect them to be numbers.

We should go through the code and replace places where we ID with Int, as that is more in line with what we expect to receive, and will prevent weird bugs that arise from our numbers sometimes being strings.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions