Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- clientName = clientNameField.text
- guard let theo = self.theo else {
- log("Client not initialized yet")
- return
- }
- let result = theo.executeCypherSync("MATCH (c:Client) WHERE c.name = (clientName) RETURN c.name as name, c.dob as dateOfBirth")
- switch result {
- case let .failure(error):
- log("Error while getting cypher results: (error)")
- case let .success(queryResult):
- if let arrayClients = queryResult.rows[21]["name"] as? String {
- log("Asked via Cypher how many nodes there are with label 'name'. Answer: (arrayClients)")
- query.append(arrayClients)
- print(query)
- } else {
- log("Got unexpected answer back")
Add Comment
Please, Sign In to add comment