tarantool / graphql

GraphQL implementation in Lua
MIT License
15 stars 3 forks source link

Change the way to require internal parts #34

Closed no1seman closed 2 years ago

no1seman commented 2 years ago

Change the way to require internal module parts

Before this patch all internal requires was made with path = (...):gsub('') that is weird Let's make it common to other tarantool ecosystem way by local submodule = require('module.submodule')

This PR doesn't brings any new functionality but only minor syntax changes

no1seman commented 2 years ago

@Totktonada As I wrote in PR description: This PR doesn't brings any new functionality or fixes any bugs but only minor syntax changes to remove weird (for my point of view) code

Totktonada commented 2 years ago

Okay, that's in the spirit of 127f1b8156de5889e2fb58f34bfbd10e34f98ba4, where we changed module objects (which are returned from require) from functions to tables, because it is how we usually write modules in tarantool.