Skip to content
This repository was archived by the owner on Feb 10, 2019. It is now read-only.

validation on custom field's arguments #320

Open
mukesh-n-crest opened this issue Apr 5, 2018 · 1 comment
Open

validation on custom field's arguments #320

mukesh-n-crest opened this issue Apr 5, 2018 · 1 comment

Comments

@mukesh-n-crest
Copy link

Hi Guys,

I'm facing some issue on laravel validation rules on custom fields 's arguments, below is the complete description,

I have below query

`query users{
    locations{
        id
        appointments (date: "2018-04-05") {
            id
            start
            end
        }
    }
}`

as you can see here, I'm having a date argument for the custom field named appointments on locations query now, I'm trying to apply rules(laravel validation rule: date) for the date argument of appointments fields of location type and i have also added the statement as stated in this issue https://github.com/Folkloreatelier/laravel-graphql/issues/27 but it's not worked for me.

I'm not sure if i'm missing something so, please suggest me the right change, thanks in advance.

@mfn
Copy link

mfn commented Jun 28, 2018

The suggestion in #27 (comment) is correct.

Please show some code of your type where you have the problem.

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