text diagram work with mongodb