feat: custom scalar support#32
Conversation
|
This was much simpler than I expected!
|
|
Addresses #19 |
|
Thanks for the PR! I would like to suggest that the option name be a little more specific. I think |
add the ability to add support for custom scalars
e2d72a3 to
ced5cf0
Compare
Thanks for the feedback @jneurock ! I made the updates you requested and updated the README. I'm not sure why the build is failing though, as I didn't touch any of the dependencies. |
|
One particular Ember Try scenario has been failing for a while. I need to update some things. Not your fault. How do you feel about adding an acceptance test? You could extend an existing test module or add a new one. Since I haven't tested custom scalars in my own apps, it would be cool to see this in action. The unit test doesn't quite tell me if the feature works. |
added a custom scalar to Person and tested querying for it in the person route
|
Thanks again for the PR! |
|
🙌 y’all are the best 🙌 |
Currently there is no ability to add support for custom scalars for example
Map. This gives the ability to add mocks for your custom scalars. an example setup would be in your options object to do the following.Then anytime a custom scalar of Map is called, it resolves using the specified resolver.