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

Custom scalars #1

Closed
Teddy-Schmitz opened this issue Feb 12, 2018 · 3 comments
Closed

Custom scalars #1

Teddy-Schmitz opened this issue Feb 12, 2018 · 3 comments

Comments

@Teddy-Schmitz
Copy link

Hi,

I am trying to figure out how to use custom scalars with this library, I added it to types.json and I'm still getting a "panic: unknown scalar". Looking at the code it wasn't immediately apparent how to do this.

Thanks!

@vektah
Copy link
Collaborator

vektah commented Feb 12, 2018

It wasn't immediately required so I haven't added it yet. It should be pretty easy to add, what kind of custom scalars were you looking to define?

@Teddy-Schmitz
Copy link
Author

We have custom scalars for the postgres json type and a few other special map and string types that we are using in our application.

@vektah vektah added this to the 1.0 milestone Feb 14, 2018
@vektah
Copy link
Collaborator

vektah commented Feb 16, 2018

see the new example

vektah pushed a commit that referenced this issue Jun 24, 2019
Support for external APQ cache
vvakame pushed a commit that referenced this issue Nov 25, 2019
modelgen hook docs use plugin poitner
StevenACoffman pushed a commit that referenced this issue Feb 23, 2024
…quires use cases (#2884)

* Adding generation of new functions to populate requires representations. WIP.

* Something.

* Adding config option for Package to allow for enabling flags.  Added flag to render explicit requires function.

* Adding fixed by @ldebruijn.

* Adding explicit requires testsing and make requires follow federation package.

* Fix test failure.

* Using embeded template like federation gotpl.  Fix rewriter not using correct dir.

* Update generated code.

* Docs (#1)

* Adding initial docs for explicit requires

* Add example docs for explicit requires

* Adding ordering fix.

* Regenerate.

---------

Co-authored-by: Jesse Lovelace <jesse.lovelace@gmail.com>
Co-authored-by: Brandon Him <brandonhim@live.com>
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