chenglabs
chenglabs
Hi, It seems the default comparer algorithm doesn't work with Javascript string http://stackoverflow.com/questions/51165/how-do-you-do-string-comparison-in-javascript This fixes the problems. let t :any[] = [{name:'royi'}, {name:'david'}, {name:'barak'}, {name:'moshe'}]; let o = asEnumerable(t).OrderBy(s=> s.name,...
Something like this... ` return new ApolloServer({ playground: {...defaultPlaygroundOptions, settings: { ...defaultPlaygroundOptions.settings, "request.credentials": "include", } }, `
.... or both are correct ;-) It's just object destructuring. The code example only wants the req property of the passed object.
Ah.. ok. I understand your issue. I only know apollo-server-express, the object passed is { req, ..etc }
@dotansimha Thanks! It's working.
I have the same problem.. It can't handle relative paths in the includes field. It only works when I configure it with the full path apollo client:codegen src/types -c=apollo.config.js --target=typescript...
> @chenglabs Interesting that you managed to get it to work at least. I just tried it with absolute paths, and I was not able to get it to work....
@JakeDawkins Hi Jake, Tried your solution, it results in the same errors. I think it's Windows related, if I run the script in Windows Bash shell it works without any...
@JakeDawkins Ok, did some debugging in the Apollo code I think there is a bug in packages/apollo/src/Command.ts line 175 const rootURI = `file://${parse(filepath).dir}`; should be const rootURI = `file:///${parse(filepath).dir}`; It's...
@deltaskelta Are you running Windows ? If so, you need to pass the whole path in the includes argument apollo client:codegen src/types --target=typescript --outputFlat --endpoint=https://graphql-pokemon.now.sh --includes=D:/Projects/GraphQL/demo/pokemon/src/queries/**