Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing instance ToJSON ID #411

Closed
ysangkok opened this issue Apr 8, 2020 · 3 comments
Closed

missing instance ToJSON ID #411

ysangkok opened this issue Apr 8, 2020 · 3 comments

Comments

@ysangkok
Copy link

ysangkok commented Apr 8, 2020

The ID type is in Morpheus.Types, so if I made my own instance it would be an orphan.

    • No instance for (aeson-1.4.7.1:Data.Aeson.Types.ToJSON.ToJSON ID)
        arising from a use of ‘aeson-1.4.7.1:Data.Aeson.Types.ToJSON..=’
    • In the expression:
        ("unidadId" aeson-1.4.7.1:Data.Aeson.Types.ToJSON..= unidadId)
      In the first argument of ‘aeson-1.4.7.1:Data.Aeson.Types.Internal.object’, namely
        ‘[("unidadId" aeson-1.4.7.1:Data.Aeson.Types.ToJSON..= unidadId)]’
      In the expression:
        aeson-1.4.7.1:Data.Aeson.Types.Internal.object
          [("unidadId" aeson-1.4.7.1:Data.Aeson.Types.ToJSON..= unidadId)]
@nalchevanidze
Copy link
Member

may i ask. in which kontext do you need JSON Instances for ID?

@nalchevanidze
Copy link
Member

is done in #415

@ysangkok
Copy link
Author

if i remember correctly, the instance is necessary to use an ID in the client. graphql queries are encoded in json, so it makes sense.

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

No branches or pull requests

2 participants