T
Twentyβ€’3w ago
Jordan

Regenerating Graphql

Hello πŸ‘‹ I'm new to the project, and trying to make a small update to add a field in the ClientConfig type (beside where isGoogleCalendarEnabled and isMicrosoftCalendarEnabled types are defined). After I update these types, I need to regenerate the graphql code... but I'm running into an issue finding the command to trigger the update. I've tried npx nx run twenty-front:graphql:generate:data but that didn't seem to work (I don't see the graphql file where the query is defined changing). Any help or direction would be appreciated.
1 Reply
Prastoin
Prastoinβ€’3w ago
Hey @Jordan ! You can pass two configuration type to this command data and metadata using: ( default being data )
npx nx run twenty-front:graphql:generate:data --configuration=data

npx nx run twenty-front:graphql:generate:data --configuration=metadata
npx nx run twenty-front:graphql:generate:data --configuration=data

npx nx run twenty-front:graphql:generate:data --configuration=metadata
Should do the trick ! Please let me know Also feel free to forward Pr afterwards

Did you find this page helpful?