Questions tagged [codegen]

Use codegen for questions related to language features or tools which facilitate translating code between languages or creating code from metadata

References

242 questions
1
vote
0 answers

typescript generic type function to get the name of a given type

I'm using graphql-codegen to generate types for my graphql server and also using the same schema to generate types for my DB(which is not exactly the same) using mongo plugin for codegen I've configured codegen to generate to each type with the name…
Eliav Louski
  • 3,593
  • 2
  • 28
  • 52
1
vote
1 answer

Apollo client:codegen does not create types for inputs

I am new to GraphQL and is currently using Apollo Client on our TypeScript React project. I am currently trying to generate types using client:codegen command and it is not including the Inputs on Mutations. This is currently the script I have in my…
JP Calvo
  • 173
  • 1
  • 2
  • 14
1
vote
4 answers

maven - jibx codegen - storing binding.xml

I'm using maven to build a jar containing generated code from an schema file using jibx. To do this I'm using the jibx-maven-plugin with the schema-codegen goal. I want to include the generated binding.xml file as part of the resulting maven jar. Is…
David Loy
  • 963
  • 1
  • 8
  • 14
1
vote
0 answers

can't download graphql schema from server using apollo cli

I made sure I have the same version of graphql in both server and client but sill getting error . this is the script I'm running : "schema:download": "apollo --schema:download --endpoint=http://localhost:4000/graphql" I'm getting this error : …
سعيد
  • 1,547
  • 1
  • 14
  • 32
1
vote
1 answer

Unable to compile code generated using gradle-swagger-generator-plugin

I am facing a problem that code generated using gradle-swagger-generator-plugin is not compiling due to unresolved dependencies. I have a multimodule gradle project with the following folder structure. parent is the parent project with three…
1
vote
1 answer

Codegen for CoreData entity not working in Xcode 11

So I am pretty new to CoreData in Xcode and I have been looking for tutorials to see how to get more familiar with it and start working with it. A tutorial I have been watching, mentions that we need to Generate code for an entity that I created. I…
Gchammas23
  • 142
  • 13
1
vote
0 answers

Generate a descriptor YAML/JSON from an existing javascript code

I would need to have the chance to generate a descriptor of an existing service. The service is a REST API, written in javascript. No tools, library, or framework were used to generate that API, like Swagger for example. The code was written…
Dom
  • 11
  • 1
1
vote
0 answers

swagger codegen maven plugin with mustache template issue in springboot

im creating the pojo using the plugin. in pojo on top of class name i want to print the class name in lowercase without modifying the swagger. i have found that we can apply mustache lambda to do so in below link but its not…
1
vote
1 answer

Sympy - Generate C code. Convert Rational to float

I am trying to generate C code with sympy, through the function ccode. Currently, I am trying to convert sympy's Rational numbers to floats for faster computation. As an example I have: import sympy as…
Manuel Oliveira
  • 527
  • 5
  • 19
1
vote
1 answer

How to handle X-Hasura-Role with graphql codegen

Good morning, I have an Angular WebApp that uses GraphQL codegen with (apollo-angular plugin and all the typescript plugins). Everything works fine but I want to handle Hasura Roles and Hasura User ID. From Hasura Console everything is configured…
gbos
  • 503
  • 2
  • 6
  • 28
1
vote
1 answer

Is there a way to custom order endpoints in NSwag?

I am using NSwag to generate code documentation, but would like to be able to have custom control over which order the endpoints appear on the generated swagger endpoint. Possibly via an attribute on the controller methods. I can't see any way to…
NZJames
  • 4,963
  • 15
  • 50
  • 100
1
vote
1 answer

Can MATLAB Coder generate a function that takes a pointer as input?

I would like to use MATLAB Coder to generate an executable (or a function in an object file) that accepts a pointer to an array as an input. I used libpointer to create a pointer object and then tried to compile with the following codegen…
Joe Mack
  • 128
  • 6
1
vote
0 answers

jooq 3.14 codegen missing information_schema column error

I have shifted to jooq 3.14 and facing code generation error. Context : I am using mysql 5.7. In my DB information_schema.COLUMNS.DATETIME_PRECISION is missing. My question is the codegen used to work with jooq 3.10. But with jooq 3.14 its throwing…
bitsobits
  • 104
  • 11
1
vote
0 answers

Change generated QEntity class field type when using QueryDsl with Spring

I have an entity class: @Document(collection = "messages") public class Message { @Id private String id; } And I'm using QueryDsl for generating Mongo queries. Querydsl generates necessary QMessage…
Kristina
  • 55
  • 5
1
vote
1 answer

TypeScript Types for Resolvers GraphQL yoga (use prisma2 on context)

Sry about my English So, i need create Types for resolvers on GraphQL yoga. I create this with graphql-codegen, but it works weirdly. And he do not currently create types context for Prisma2. codegen.yml schema: ./src/schema.graphql generates: …
KoshkenS
  • 31
  • 4