Can be used val(C) in facet of upsert mutation?

Variables on Facets aren’t supported. There is an open ticket for this.