Ash FrameworkAF
Ash Framework3y ago
4 replies
shyan

Ash Graphql "create" mutation with upsert? true – how to use ID as argument for upsert identity?

I have a Graphql create mutation within which upsert? true and upsert_identity :id. I have an action corresponding to this (code below). Can I get
id
to be an acceptable input to this mutation? Thanks!

    mutations do
      create :upsert_patient, :upsert_patient, upsert?: true, upsert_identity: :id
    end


    create :upsert_patient do
      upsert? true
      upsert_identity :id
    end
Was this page helpful?