generateGraphQLModels

This generates models for all queries, mutations, and subscriptions. Call this method every time if there is a change in the query or you've added a new query in the GraphQL file.

generateGraphQLModels() → returns void

This function requires Adobe ColdFusion 2023 and up.  Not supported on Lucee, etc.

Links more information about generateGraphQLModels

Examples
Sample code invoking the generateGraphQLModels function

Creates a GraphQL client with specified properties and calls generateGraphQLModels

gqlClient = getGraphQLClient({
    service_url: "https://apollo-fullstack-tutorial.herokuapp.com/graphql",
    root_folder: "root",
    headers: { keys: "key", values: "value" }
}); 
generateGraphQLModels();

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub