I am writing a Ruby Prefect client that’ll eventually allow our Rails app to schedule flows in Prefect. When exploring the GraphQL schema I am noticing that there are 3 uuid types defined. They are called:
uuid
,
_uuid
and
UUID
. Their definitions look identical, all are
SCALAR
values.
What is the purpose of having 3 different UUID types defined in the GraphQL schema?
Soren Daugaard
07/15/2021, 8:28 PM
Having these 3 types is unfortunately causing some problems when using the
graphql-client
gem to communicate with the Prefect API.
The problem is name collisions when trying to define a
Uuid
class.
Soren Daugaard
07/15/2021, 8:29 PM
To see run
prefect server run
, go to:
localhost:4200
and execute:
Copy code
query {
__schema {
types {
name
kind
}
}
}
n
nicholas
07/15/2021, 9:06 PM
Hi @Soren Daugaard - the reason for those different types is that Hasura, GraphQL, and Python all expose different scalar types; because the API you're seeing is a composition of the 3 types you end up seeing all of the types.
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.