amplify-codegen icon indicating copy to clipboard operation
amplify-codegen copied to clipboard

Injecting Custom API Queries and Mutations in Android Codegen

Open julien-tamade opened this issue 3 years ago • 2 comments

Which Category is your question related to? API, Codegen Amplify CLI Version 7.6.8

What AWS Services are you utilizing? Cognito, Dynamodb, Appsync, S3, Pinpoint, Amplify, OpenSearch, Lambda, APIGateway

When generating code for my iOS project, I can easily inject custom queries or mutations into the API.swift file. I just add a .graphql file (i call mine "customqueries.graphql") into the generated ./graphql folder and then it get's injected into the API.swift file.

How can I do something similar for android? I've tried adding those custom files in various places in the project hierarchy but haven't found anything that works.

Thank you in advance!

julien-tamade avatar Aug 01 '22 22:08 julien-tamade

Hi, Just wanted to bump this as a solution or answer would greatly help my team at the moment. Thank You!

julien-tamade avatar Aug 09 '22 10:08 julien-tamade

As above, also looking for a solution here.

jamesclement avatar Sep 01 '22 08:09 jamesclement