Hi everyone! Is there a way to query for datasets,...
# getting-started
c
Hi everyone! Is there a way to query for datasets, that are deprecated? I cannot figure it out, since the
filters
argument in the GraphQL
search
operation requires the
value
to be a string. I had hoped I could do the following:
Copy code
search(input: {
    type:DATASET,
    query:"*",
    start:0,
    count:10,
    filters: [
      {
      	field: "deprecated"
      	value: true
    	}
...
b
hey Mads! I believe this can actually be done using the
query
here instead of filters. If you change your query to look like this it should work:
Copy code
search(input: {
    type:DATASET,
    query:"deprecated: true",
    start:0,
    count:10,
...
c
Thank you, @bulky-soccer-26729, that did the trick! I was not aware of that functionality!
b
of course! here's some more info on advanced search queries like this if you're interested: https://datahubproject.io/docs/how/search/#advanced-queries
c
@bulky-soccer-26729 I do not see the "Advanced" toggle button on our Datahub instance. We're running 0.8.45. Is this something that I must enable somewhere?
b
ah yeah I believe the advanced search feature won't be available until our next release (targeting this week I think). but once it's in there you don't need to do anything in order to see it!