Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Anotate class to map to scalar #245

Open
tdnghia98 opened this issue Jan 13, 2021 · 2 comments
Open

Anotate class to map to scalar #245

tdnghia98 opened this issue Jan 13, 2021 · 2 comments

Comments

@tdnghia98
Copy link

Hi

I tried to incorporate Artemis with my already working Hasura endpoint, the problem is Hasura generates multiple types, and it is very confusing if I have to declare the mappers of all these in the build.yaml

Is there any planning on annotating the class to map to scalar? I think that it would be very useful

@comigor
Copy link
Owner

comigor commented Jan 13, 2021

Hello @tdnghia98!
Do you have any example of how would that work?
Today, as a generator, artemis only have configurations on build.yaml file.

@tdnghia98
Copy link
Author

Hello @comigor
Sorry for the late reply.
The idea is like when using freezed package or json_serializable where you can simply annotate the class and there will be generated code. So for example if I can annotate a query class with @query and mutation class with @mutation and then have the generated types for the input fields and the output result that would be great. As I understand for now I have to manually write parser for these and include them in the build.yaml file

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants