maple v0.3.0 Maple View Source

The purpose of this module is to parse a GraphQL schema and to dynamically create easy to use client code functions at compile time with which a user can execute queries and mutations on a GraphQL endpoint.

The module takes options from the configuration:

config :maple,
  build_type_structs: false,
  http_adapter: Maple.Clients.Http,
  websocket_adapter: Maple.Clients.WebsocketApollo
  • :build_type_structs - Default is false. If set to true the macro will create structs for all the fields found in the introspection query. All types are namespaced into Maple.Types.

  • :http_adapter - The default HTTP adapter for completing transactions against the GraphQL server. Default is: Maple.Clients.Http

  • :websocket_adapter - The default Websocket adapter for completing transactions against the GraphQL server using websockets. Default is: Maple.Clients.WebsocketApollo

Link to this section Summary

Link to this section Functions

Link to this macro generate_graphql_functions() View Source (macro)