I am trying to retrieve a single entry based on the name custom field of my entry.
I have tried using the JS SDK with various options:
client.getEntry("entryID")
// .where("content_type", "Restaurant")
// .where("fields.name[match]", "RestaurantName")
// .all()
.then(data => console.log('data', data))
.catch(err => console.log('err', err))
But based on the errors back, it's suggesting I can only use .getEntry
and pass in the entry ID.
I also looked at making an HTTP request with axios
but faced a similar issue with only being able to retrieve either a full list of entries or filtered based on the entry ID.
Is there a away I can fetch by `field.name === "Slug" or some other custom field I have added?