user5569792
0
Q:

mongo db returning null in array of string graphql

// Using the same query as aboveconst result = await client.query({ query: query });if (result.data.restaurants) {  result.data.restaurants.forEach(restaurant => {    if (restaurant) {      console.log(restaurant.name);      console.log(restaurant.location.address);    }  });}
0

New to Communities?

Join the community