Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Fix GraphQL schema generation for Go functions#360

Merged
mattjohnsonpint merged 4 commits intomainfrom
mjp/hyp-2148-add-tests-for-graphql-schema-generation-based-on-go
Sep 13, 2024
Merged

Fix GraphQL schema generation for Go functions#360
mattjohnsonpint merged 4 commits intomainfrom
mjp/hyp-2148-add-tests-for-graphql-schema-generation-based-on-go

Conversation

@mattjohnsonpint
Copy link
Contributor

@mattjohnsonpint mattjohnsonpint commented Sep 13, 2024

We had schema generation tests for AssemblyScript-based functions but not Go-based functions.

On adding the tests, I found and fixed two issues:

  • Scalar types should not be created for pointers or slices
  • Type names for nested nullable maps were not being generated correctly

There's also some mismatch between what Go and AssemblyScript can support. We can solve that in the future. See HYP-2147 for more details.

@mattjohnsonpint mattjohnsonpint requested a review from a team September 13, 2024 00:34
@linear
Copy link

linear bot commented Sep 13, 2024

HYP-2148 Add tests for GraphQL schema generation based on Go

We currently have tests for AssemblyScript but not Go, for the schema generation.

I've seen a few glitches, so we should update the tests and fix the glitches.

@mattjohnsonpint mattjohnsonpint enabled auto-merge (squash) September 13, 2024 00:36
@mattjohnsonpint mattjohnsonpint merged commit b169585 into main Sep 13, 2024
@mattjohnsonpint mattjohnsonpint deleted the mjp/hyp-2148-add-tests-for-graphql-schema-generation-based-on-go branch September 13, 2024 00:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants