Search in sources :

Example 1 with InsertProductsMutation

use of com.example.graphql.client.betterbotz.products.InsertProductsMutation in project stargate by stargate.

the class ApolloTest method insertProduct.

private InsertProductsMutation.InsertProducts insertProduct(ApolloClient client, ProductsInput input) {
    InsertProductsMutation mutation = InsertProductsMutation.builder().value(input).build();
    InsertProductsMutation.Data result = getObservable(client.mutate(mutation));
    assertThat(result.getInsertProducts()).isPresent();
    return result.getInsertProducts().get();
}
Also used : InsertProductsMutation(com.example.graphql.client.betterbotz.products.InsertProductsMutation)

Aggregations

InsertProductsMutation (com.example.graphql.client.betterbotz.products.InsertProductsMutation)1