2022-10-24, 19:58
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
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