ardatan/graphql-toolkit

Wrong windows path resolution

Aliaksei-Martsinkevich opened this issue · 1 comments

When loading schema from relative path like schema.js on Windows machine, it resolved into C:\abs\path\to\schema.js. here. When this string is passed to require, it leads to following \a, \p and so on are processed as escape character, and \p = p. So path becomes C:abspathtoschema.js, which cannot be resolved, obviously.

Available since 0.4.0