add: typechecking for graphql, fix-up imports where needed Closes #670 See merge request inject/frontend!575