Skip to content

Latest commit

 

History

History
48 lines (39 loc) · 593 Bytes

property-tests.adoc

File metadata and controls

48 lines (39 loc) · 593 Bytes

Property Tests

Table of Contents

Schema

type Person {
  id : ID! @property(name:"an-id")
  name: String @property(name:" a name ")
}
type Query {
  person : [Person]
}

Tests

rename property

GraphQL-Query
{ person(id:"32",name:"Jane") { name }}
Cypher params
{
  "personId" : "32",
  "personName" : "Jane"
}
Cypher
MATCH (person:Person)
WHERE (person.`an-id` = $personId
	AND person.` a name ` = $personName)
RETURN person {
	name: person.` a name `
} AS person