commit 98ef63134c544cba3ddbbdd1012e76cd8cc5b248 parent e5d91c68ffe68ecd9c590578be8dd7bc54c4d6bd Author: Alberto Lerda <albertolerda97@gmail.com> Date: Mon, 24 Oct 2022 17:39:37 +0200 Zenflows.VF.Person.Type: get person just from email Diffstat:
M | src/zenflows/vf/person/type.ex | | | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/zenflows/vf/person/type.ex b/src/zenflows/vf/person/type.ex @@ -181,6 +181,12 @@ object :query_person do arg :eddsa_public_key, non_null(:string) resolve &Resolv.person_exists/2 end + @desc "Retrieve a person from the email (if a person with that email exists)" + field :person_pubkey, :person do + meta only_guest?: true + arg :email, non_null(:string) + resolve &Resolv.person_exists/2 + end end object :mutation_person do