Created
April 18, 2024 18:44
-
-
Save delasign/823d12474154dcd8422e37c5e63202a3 to your computer and use it in GitHub Desktop.
Sample Contentful Entry Query
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MARK: Functionality | |
import ContentfulClient from "utils/contentful/client"; | |
// MARK: Function | |
export default async (): Promise<any> => { | |
const response = await ContentfulClient.getEntry("AN_ENTRY_ID"); | |
console.log("response: ", response) | |
return response | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment