Skip to content

Adds an emitter shell and sets up the tests to get options - #5033

Merged
timotheeguerin merged 4 commits into
microsoft:feature/graphqlfrom
swatkatz:feature/add-emitter-setup
Nov 8, 2024
Merged

Adds an emitter shell and sets up the tests to get options#5033
timotheeguerin merged 4 commits into
microsoft:feature/graphqlfrom
swatkatz:feature/add-emitter-setup

Conversation

@swatkatz

@swatkatz swatkatz commented Nov 8, 2024

Copy link
Copy Markdown
Contributor

Description

This PR sets up the flow to use the GraphQL emitter by providing an interface for the various options that the GraphQL emitter will use eventually. It also sets up test-hosts to work with these options. The actual schema emitter doesn't really do anything other than emit "Hello World" as it did previously, but the options get pass through as confirmed by the test case.

Going forward, we can change the code in schema-emitter.ts to setup it up for GraphQL using navigateProgram. We need to add diagnostics in the emitter lib definition, but that can be done in a separate PR. The next PR will have the outer layer of the GraphQL emitter setup to deal with multiple schemas similar to multiple services in the OAI emitter.

Testing

Run the tests and see that they pass.

Comment thread packages/graphql/src/emitter.ts Outdated
Comment thread packages/graphql/src/lib.ts Outdated
@swatkatz
swatkatz force-pushed the feature/add-emitter-setup branch from 7249779 to 8ea6a2f Compare November 8, 2024 19:15
@timotheeguerin
timotheeguerin merged commit aee6340 into microsoft:feature/graphql Nov 8, 2024
@swatkatz
swatkatz deleted the feature/add-emitter-setup branch November 8, 2024 21:23
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

Successfully merging this pull request may close these issues.

2 participants