Closed
Description
Hello!
Does GQL package (3.0.0a1) have the support of making queries with DSL for SequelizeJSON type? For example:
{
user_raw_search(where: {county: {eq: "Pulaski"}}) {
user_id
}
}
Where where
argument is SequelizeJSON
Because in case of using in such way:
dsl.query(
dsl.Query.user_raw_search(where={"county": {"eq": "Pulaski"}}).select(
dsl.User.user_id,
),
)['user_raw_search']
I got an error: Cannot convert value to AST: {'county': {'eq': 'Pulaski'}}.
GraphQL schema:
directive @cacheControl(
maxAge: Int
scope: CacheControlScope
) on FIELD_DEFINITION | OBJECT | INTERFACE
directive @specifiedBy(url: String!) on SCALAR
enum CacheControlScope {
PUBLIC
PRIVATE
}
type Query {
user(id: ID!): User
users(order: String, limit: Int, offset: Int): [User]
user_search(where: UserQuery!, order: String, limit: Int, offset: Int): [User]
user_raw_search(
where: SequelizeJSON!
order: String
limit: Int
offset: Int
): [User]
}
scalar SequelizeJSON
scalar Upload
type User {
active: Boolean
address: String
address2: String
address3: String
city: String
county: String
dob: String
email: String
firstName: String
gender: String
id: ID
lang: String
lastName: String
memberId: String
phoneNumber: String
sb360userId: String
state: String
zip: String
}
input UserQuery {
active: Boolean
address: String
address2: String
address3: String
city: String
county: String
dob: String
email: String
firstName: String
gender: String
id: ID
lang: String
lastName: String
memberId: String
phoneNumber: String
sb360userId: String
state: String
zip: String
}