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

protected $inputObject = true; for interface #183

Open
liepaja opened this issue Aug 29, 2017 · 1 comment
Open

protected $inputObject = true; for interface #183

liepaja opened this issue Aug 29, 2017 · 1 comment

Comments

@liepaja
Copy link

liepaja commented Aug 29, 2017

Is it possible to use interface as input type?

@n1ru4l
Copy link
Contributor

n1ru4l commented Aug 31, 2017

This is not part of the official spec. There are considerations allowing unions instead of interfaces as an input type. graphql/graphql-spec#114 (comment)

For now you could simply use a json field or stringify your json. (Not that clean, but I am also doing this).

Maybe someone could write a port of the following javascript package for php? https://github.com/Cardinal90/graphql-union-input-type

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