You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 26, 2022. It is now read-only.
Multi-line string arguments are frequently used with the @cypher directive, however the Prism syntax highlighter doesn't recognize these strings as multi-line strings and syntax highlights them as GraphQL.
For example:
type Business {
businessId: ID!
averageStars: Float! @cypher(statement:"MATCH (this)<-[:REVIEWS]-(r:Review) RETURN avg(r.stars)")
recommended(first: Int = 1): [Business] @cypher(statement: """
MATCH (this)<-[:REVIEWS]-(:Review)<-[:WROTE]-(:User)-[:WROTE]->(:Review)-[:REVIEWS]->(rec:Business)
WITH rec, COUNT(*) AS score
RETURN rec ORDER BY score DESC LIMIT $first
""")
name: String!
city: String!
state: String!
address: String!
location: Point!
reviews: [Review] @relation(name: "REVIEWS", direction: "IN")
categories: [Category] @relation(name: "IN_CATEGORY", direction: "OUT")
}
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Multi-line string arguments are frequently used with the
@cypher
directive, however the Prism syntax highlighter doesn't recognize these strings as multi-line strings and syntax highlights them as GraphQL.For example:
The text was updated successfully, but these errors were encountered: