TheCocktailDB.com - An Open Cocktail Database with API
apollo client and typescript:
Hi, I am trying to use the thecocktaildb with graphQL and typescript. I am using apollo client, but have some problem understanding how to get the data from the API with graphQL. Does anyone have any experience with it?

This is how I have set up the gql. I believe that this is where I have done something wrong:

const GET_DRINKS = gql`
query getDrinks{
drinks{
idDrink
strDrink
}
}
`;


thanks in advanced Smile
Reply


Messages In This Thread
RE: TheCocktailDB.com - An Open Cocktail Database with API - by karanss - 2022-10-24, 19:58
Logout Mark Read Team Forum Stats Members Help
TheCocktailDB.com - An Open Cocktail Database with API2