Skip to content

Conversation

@mvnetbiz
Copy link
Contributor

I wanted to be able to get errors from constraints on a domain. This worked for me.
Is adding the 2nd function the best way, and is it okay to change the exported function name?

Copy link
Member

@enisdenjo enisdenjo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great, thank you!

I'd recommend updating the example in the readme to reflect that type constraints can be manipulated too.

@mvnetbiz
Copy link
Contributor Author

mvnetbiz commented Jun 1, 2023

I added an example. In my case I am using crypt() on the password and only storing the hash, but I am just using the domain as a place to "store" the checks so I can test them like new_pass::strong_password in multiple functions.

Copy link
Member

@enisdenjo enisdenjo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! 🚀

@enisdenjo enisdenjo merged commit abc8af9 into graphile-contrib:master Jun 1, 2023
@enisdenjo
Copy link
Member

Released in v1.1.0.

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

Successfully merging this pull request may close these issues.

2 participants