react native - Can a GraphQL server return images? -
i'm working on react-native app, , wondering if graphql can return image file opposed json, i.e. content-type - (image/jpeg etc).
<image source={{uri: 'http://localhost/graphql?query{getimage(imageid)}'}} style={{width: 400, height: 400}} />
is possible? or have create separate non-graphql server achieve this?
graphql servers can return images. if you're looking graphql client image handler, check out library.
the way scaphold handles appending image using formdata , in variables references key image stored. on graphql server, can have piece of middleware plucks image off of key , can handle wish.
hope helps!
Comments
Post a Comment