Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input type objects should be supported [engine] #56

Open
111mihir opened this issue Nov 2, 2023 · 0 comments
Open

Input type objects should be supported [engine] #56

111mihir opened this issue Nov 2, 2023 · 0 comments
Assignees

Comments

@111mihir
Copy link
Contributor

111mihir commented Nov 2, 2023

I cannot currently declare a function with input type set to an object. It should be possible to do that easily.

Eg:

export async function InsertUser({
  first_name,
  last_name
}: {
  first_name: string,
  last_name: string
}): Promise<{ status: string, message: string }> {}

Adding this as a procedure in a connector to hasura results in the build(created using the cli) failing with this error:

[Error { message: "building metadata failed: invalid metadata: error building schema: unable to build schema: internal error: no support for: object types as input", locations: None, path: None, extensions: Some({"code": String("legacyError"), "id": String("aac85ca2-d551-4a81-bc6e-d47ec3abcede")}) }]

@sordina sordina changed the title Input type objects should be supported. Input type objects should be supported [engine] Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants