Skip to content

Not Fetching Data when specifying field attribute in config.yml #108

@SimonLeiner

Description

@SimonLeiner

Describe the bug
I successfully Connected meilisync with my MongoDB Atlas Database. If I don't use the "fields" argument in the yaml file, I receive the data, however as soon as I specify the fields, all data is None.

My config.yml:

plugins:
  - meilisync.plugin.Plugin
progress:
  type: file
  path: process.json
source:
  type: mongo
  host: ...
  username:...
  password:...
  database:...
meilisearch:
  api_url: ...
  api_key: ...
  insert_size: 1000
  insert_interval: 10
sync:
  - table: userschemas
    index: userschemas
    full: true
    pk: _id
    fields:
      _id:
      email:
      userName:
      firstName:
      lastName:
      gender:

Example of some dummy Data in Mongo DB:
image

Logging without Specification:
image

Logging with Specification:
image

Expected behavior:
Should Catch the Data given the provided fields

Desktop (please complete the following information):

  • OS: Mac m1
  • Python version: 3.11
  • functime version: 0.1.3
  • MongoDB Atlas
  • meilisearch Cloud

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions