I'm trying to get some filtering working and it's failing... not matter what I add for the filters. Not sure what's going on. My automatic schema has generated all the appropriate filters, but it's not doing anything. It always returns all users (in my use case).
query GetUser {
User(filter: {username_contains: "tommo"}) {
id
firstName
lastName
email
username
avatar
displayName
prefix
suffix
phone
birthday {
formatted
}
tagline
bio
homepage
city {
name
}
state {
name
}
}
}
And just for clarification sake... no... not all users have "tommo" in the name ;-) What's going wrong?
@ tlester did you ever solve this issue? I seem to be having the same problem. filter: is ignoring all filter rules entirely and just returns entire result sets.
what libraries are you using in your project in conjunction with Dgraph/Slash. what are you using to view your graph database is there a program similar to neo4j desktop?
did you have to change much in your project to migrate to the new database?
note: I'd accidentally included both "apollo-server": "^2.19.0", and "apollo-server-express": "^2.19.0", in my package.json where one OR the other but not both should be included. that was a typo.