Nick Sethi

Results 34 comments of Nick Sethi

Have you tried rewriting your query using the [IN operator](https://neo4j.com/docs/graphql-manual/current/filtering/#_array_comparison)? The reason the query is so slow is because the db is making 6 separate calls. If you batch the...

This might seem a tad unorthodox, but you could think of a search as a "connection" and then the full text score becomes an edge property. We already have top-level-connections,...

@darrellwarde Did you see my suggestion above ☝🏾 We could implement it like: ```graphql type Movie @fulltext(indexes: [{ name: "MovieTitle", fields: ["title"] }]) { title: String! } type MovieEdge {...

Posted this workaround in the discord, but pasting it here just in case: // ------------------------------------------------------------------- Is there a reason you can't use something like `graphql-middleware` to wrap the resolver? Basically...

> Now that I know this, I agree that the neo4jgraphql function wouldn't be that useful. Yet, I think that mentioning `graphql-middleware` in the docs would be useful for many...

@Tenrys my understanding is that the middleware is called on the Type. But on mutations, I think you're correctly it will only fire before/after the top-level mutation. If you wanted...

@Moodycomputer While you wait for the team to get back to you, you can accomplish what you want by using [graphql-tools](https://www.graphql-tools.com/docs/schema-wrapping#filtering) to filter out unnecessary fields. A rudimentary filter to...

So I could be way off base here, but I think this fix might be easier than once thought. Or at least it should be theoretically. If I understand the...

@chrisdostert I believe that the team reported it might be a few weeks until the next release. In the meantime, I have a forked package at `@litewarp/graphql` and `@litewarp/graphql-ogm` that...

The easiest way to apply validations at the moment is either to use an existing directive like [graphql-constraint-directive](https://www.npmjs.com/package/graphql-constraint-directive) or [graphql-middleware](https://github.com/maticzav/graphql-middleware) and specifically [graphql-yup-middleware](https://github.com/JCMais/graphql-yup-middleware)