cppgraphqlgen
cppgraphqlgen copied to clipboard
C++ GraphQL schema service generator
I'm following the strategies in https://github.com/microsoft/cppgraphqlgen/issues/182 for getting values as a batch vs getting everything and selecting just what the client wanted. I'm now up against this sort of scenario...
Here's another minor suggestion by SonarQube. The generated object class is already final is so no need to declare the functions as final. There is also suggestions to mark the...
We have gotten some code smells reported by SonarQube regarding these smart pointer rvalue references, so I thought I could maybe contribute and suggest passing these smart pointers by value...
Object models require me to pass shared_ptr to constructor. How do I pass object that is not owned by shred_ptr? Here is example schema fragment: ``` type MemberField{ name: String!...
All clients uses the same include guard. If app uses multiple different queries multiple files generated by clientgen must be used. Since all of them use same guard we cannot...
I've been having a lot of ... fun implementing `boost::asio` alongside this lib - mainly due to the fact that the ASIO coroutine `co_await` handler looks like this ``` //...
I thought it might be better I report the SonarQube issues and you can decide their validity and what to do about them. These are not that severe, but since...
When generating a client using fragments and lots of similar queries that use the same fragment it leads to lots of the same structs being generated. Ideally there would be...
When I use vcpkg to compile the cppgraphqlgen library, a compilation error occurs using the following command. `./vcpkg install cppgraphqlgen[core,rapidjson]:x64-linux` error: ``` /usr/include/c++/13/bits/unique_ptr.h:99:9: error: ‘void operator delete(void*, std::size_t)’ called on...
Using the schema: ``` type ContactMethod { id: ID name: String method_type: ContactMethodType method: ContactMethodValue } type Query { getContactById(id: ID) : Contact getContactsByName(search: String) : [Contact] #getContactsByContactMethod(search: String) :...