Hi, I’ve been working on a Next.js app with Airtable.
I’m trying to retrieve a single record by specifying the field (not reocrd ID provided by Airtabe).
I refered to the document below, but it only mentions the way of doing it by the record ID.
The code below is working fine, but I’d like to get a record by the specified column (eg. where “user_id” = 987813 ).
//export const getServerSideProps = async (context) => {
export async function getServerSideProps(context) {
let todos = await table.find('rec1PDbe0ww22feo3');
return {
props: {
initialTodos: getMinifiedRecord(todos),
},
};
}
Thanks,