square-football-37770
02/15/2023, 9:54 AMplayer_uid
or player_id
. This is fairly easyto do as shown in the screenshot. Problem is I’d also like to know the type, i.e. is player_id
a number or a string. I came up with a GQL query for this:
{
search(input: {type: DATASET, query: "player_uid", start: 0, count: 10}) {
start
count
total
searchResults {
entity {
urn
type
... on Dataset {
name
schemaMetadata {
fields {
fieldPath
type
}
}
}
}
}
}
}
the only issue is it shows ALL the fields in the table and I’d like to have only the one called player_id
OR player_uid,
anyone knows if this is possible?better-orange-49102
02/15/2023, 10:13 AMsquare-football-37770
02/15/2023, 10:18 AMbetter-orange-49102
02/15/2023, 10:40 AMquery test{
searchAcrossEntities(input:{
types: DATASET
query: "*"
orFilters:[
{and: [{field: "fieldPaths" condition: CONTAIN values: ["state_name"], negated: false}]}
{and: [{field: "fieldPaths" condition: CONTAIN values: ["siour"], negated: false}]}
]
}){
count
searchResults{
entity{
... on Dataset{
urn
}
}
}
}
}
better-orange-49102
02/15/2023, 10:41 AMbetter-orange-49102
02/15/2023, 10:42 AMsquare-football-37770
02/15/2023, 10:42 AMsearchAcrossEntities
needed?better-orange-49102
02/15/2023, 10:43 AMsearch
insteadbetter-orange-49102
02/15/2023, 10:44 AMtypes
to type
square-football-37770
02/15/2023, 10:44 AMsquare-football-37770
02/15/2023, 10:51 AMsquare-football-37770
02/15/2023, 10:52 AMfieldPaths
to contain one of the names I’m looking for right?better-orange-49102
02/15/2023, 10:55 AMbetter-orange-49102
02/15/2023, 10:57 AMquery: "fieldsPath: X OR fieldsPath: Y"
without filters is working for me in v0.8.45(my own instance), but not in v0.10 (demo site)astonishing-answer-96712
02/15/2023, 5:31 PMastonishing-answer-96712
02/15/2023, 5:31 PM