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

Upgrade cppgraphqlgen Codebase from v3.6.0 to v4.5.8 #344

Open
YJPrakash opened this issue Dec 18, 2024 · 1 comment
Open

Upgrade cppgraphqlgen Codebase from v3.6.0 to v4.5.8 #344

YJPrakash opened this issue Dec 18, 2024 · 1 comment

Comments

@YJPrakash
Copy link

YJPrakash commented Dec 18, 2024

Description
I am upgrading my codebase from cppgraphqlgen version 3.6.0 to the latest version 4.5.8.

Current Setup:

  • Compiler: g++ 14
  • Operating System: Ubuntu 24.04 LTS
  • Schema Folder: Contains the schema files generated by cppgraphqlgen (latest version).

Goal:
I need to implement GreetImpl.cpp for the latest schema generated files in the schema folder.

Additionally, if possible, I would like to integrate the schema compiled by cppgraphqlgen (as part of greet.node) into an express-graphql server.

Exclusions:

  • Node Addon Part: I am not focusing on the Node.js add-on implementation mentioned in my Stack Overflow question.
  • The primary focus is resolving compilation errors when implementing GreetImpl.cpp for the upgraded schema.

Steps to Reproduce

  1. Use the schema files generated by cppgraphqlgen v4.5.8 in the schema folder.
  2. Update the GreetImpl.cpp file to support the new schema structure.
  3. Compile the project using g++ version 14.

Observed Behavior
Compilation errors are encountered when implementing GreetImpl.cpp with the new schema.

Expected Behavior
GreetImpl.cpp should compile successfully, and the schema should be integrated seamlessly into the codebase.

Notes
For reference, the previous implementation was based on cppgraphqlgen v3.6.0 and used a simple greet message ("Hello World") with MockData.

Any guidance or insights into addressing the compatibility issues with the schema generated by cppgraphqlgen v4.5.8 would be highly appreciated.

@YJPrakash YJPrakash changed the title Upgrading Node.js Add-on with cppgraphqlgen to Support Version 4.5.8 and GraphiQL Integration Upgrade cppgraphqlgen Codebase from v3.6.0 to v4.5.8 Dec 18, 2024
@wravery
Copy link
Contributor

wravery commented Dec 18, 2024

Check out the migration guide for guidance upgrading from 3.x to 4.x: https://github.com/microsoft/cppgraphqlgen/blob/main/doc/migration.md.

There's going to be a 5.x release soon, and that migration guide might be replaced in main with guidance for upgrading from 4.x to 5.x. If that version of the guide doesn't work, try changing your view from the main branch to v4.x, which will be the servicing branch for 4.x once 5.x is released.

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