具有Mongoose查找查询的NodeJS未返回正确的结果

时间:2016-05-03 14:59:23

标签: node.js mongodb

我有一个静态方法的mongoose模式,但是当我运行时:

cmake_minimum_required(VERSION 2.6)    
PROJECT(testMPI)

SET(EXECUTABLE_OUTPUT_PATH ${testMPI_SOURCE_DIR}/bin)
aux_source_directory(. DIR_SRCS)
ADD_EXECUTABLE(testMPI ${DIR_SRCS})    
install(TARGETS testMPI DESTINATION bin)

SET(VTK_DIR "/export/home/hh/hh/vtk/")   
SET(VTK_LIBRARIES libLSDyna.so libMapReduceMPI.so libmpistubs.so libvtkalglib.so libvtkCharts.so libvtkCommon.so libvtkDICOMParser.so libvtkexoIIc.so libvtkexpat.so libvtkFiltering.so libvtkfreetype.so libvtkftgl.so libvtkGenericFiltering.so libvtkGeovis.so libvtkGraphics.so libvtkhdf5_hl.so libvtkhdf5.so libvtkHybrid.so libvtkImaging.so libvtkInfovis.so libvtkIO.so libvtkjpeg.so libvtklibxml2.so libvtkmetaio.so libvtkNetCDF_cxx.so libvtkNetCDF.so libvtkpng.so libvtkproj4.so libvtkRendering.so libvtksqlite.so libvtksys.so libvtktiff.so libvtkverdict.so libvtkViews.so libvtkVolumeRendering.so libvtkWidgets.so libvtkzlib.so)

SET(VTK_LIBRARIES_DIRS)    
foreach(libs ${VTK_LIBRARIES})
    set(FOUND "FOUND-NOTFOUND")
    find_library(FOUND ${libs} "/export/home/hh/hh/vtk/lib/vtk-5.10")
    list(APPEND VTK_LIBRARIES_DIRS ${FOUND})
endforeach(libs)

find_package(VTK REQUIRED)
IF(VTK_FOUND)
    MESSAGE(STATUS "VTK IS USED")
    INCLUDE(${VTK_USE_FILE})
ELSE()
    MESSAGE(FATAL_ERROR "VTK IS NOT FOUND")
ENDIF(VTK_FOUND)   
TARGET_LINK_LIBRARIES(testMPI ${VTK_LIBRARIES_DIRS})

LIST (APPEND CMAKE_INCLUDE_PATH "/export/home/hh/hh/boost/include")
LIST (APPEND CMAKE_LIBRARY_PATH "/export/home/hh/hh/boost/lib")

FIND_PACKAGE(Boost REQUIRED)
IF(Boost_FOUND)
    MESSAGE(STATUS "Boost IS USED")
    INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
ELSE(Boost_FOUND)
    MESSAGE(FATAL_ERROR "Boost IS NOT FOUND")
ENDIF(Boost_FOUND)    
TARGET_LINK_LIBRARIES(testMPI ${Boost_LIBRARIES})

LIST(APPEND CMAKE_INCLUDE_PATH "/export/home/hh/hh/sqlite/include")
LIST(APPEND CMAKE_LIBRARY_PATH "/export/home/hh/hh/sqlite/lib")    
LIST(APPEND CMAKE_MODULE_PATH "${testMPI_SOURCE_DIR}/cmake")

FIND_PACKAGE(SQLite3 REQUIRED)    
IF(SQLITE3_FOUND)
    MESSAGE(STATUS "SQLite3 IS USED")
    INCLUDE_DIRECTORIES(${SQLITE3_INCLUDE_DIRS})
ELSE(SQLITE3_FOUND)
    MESSAGE(FATAL_ERROR "SQLite3 IS NOT FOUND")
ENDIF(SQLITE3_FOUND)    
TARGET_LINK_LIBRARIES(testMPI ${SQLITE3_LIBRARIES})

FIND_PACKAGE(MPI REQUIRED)

IF(MPI_FOUND)
    MESSAGE(STATUS "MPI IS USED")
    INCLUDE_DIRECTORIES(${MPI_INCLUDE_PATH})
ELSE(SQLITE3_FOUND)
    MESSAGE(FATAL_ERROR "MPI IS NOT FOUND")
ENDIF(MPI_FOUND)
TARGET_LINK_LIBRARIES(testMPI ${MPI_LIBRARIES})

它只返回属性_id和to_lock。为什么?默认设置是包括整个文档。这是一些错误吗?当我使用除NodeJS之外的其他工具时,它会返回正确的值。

谢谢

0 个答案:

没有答案